Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: sky/engine/platform/graphics/DecodingImageGenerator.h

Issue 1235863004: Roll Skia to 2ced78866fcadd98895777c8dffe92e229775181 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // as an adapter to ImageFrameGenerator which actually performs decoding. 43 // as an adapter to ImageFrameGenerator which actually performs decoding.
44 class DecodingImageGenerator final : public SkImageGenerator { 44 class DecodingImageGenerator final : public SkImageGenerator {
45 public: 45 public:
46 DecodingImageGenerator(PassRefPtr<ImageFrameGenerator>, const SkImageInfo&, size_t index); 46 DecodingImageGenerator(PassRefPtr<ImageFrameGenerator>, const SkImageInfo&, size_t index);
47 virtual ~DecodingImageGenerator(); 47 virtual ~DecodingImageGenerator();
48 48
49 void setGenerationId(size_t id) { m_generationId = id; } 49 void setGenerationId(size_t id) { m_generationId = id; }
50 50
51 protected: 51 protected:
52 virtual SkData* onRefEncodedData() override; 52 virtual SkData* onRefEncodedData() override;
53 virtual Result onGetPixels(const SkImageInfo&, void* pixels, size_t rowBytes , const Options& options, SkPMColor ctable[], int* ctableCount) override; 53 virtual bool onGetPixels(const SkImageInfo&, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) override;
54 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy tes[3]) override; 54 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy tes[3]) override;
55 55
56 private: 56 private:
57 RefPtr<ImageFrameGenerator> m_frameGenerator; 57 RefPtr<ImageFrameGenerator> m_frameGenerator;
58 size_t m_frameIndex; 58 size_t m_frameIndex;
59 size_t m_generationId; 59 size_t m_generationId;
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_DECODINGIMAGEGENERATOR_H_ 64 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_DECODINGIMAGEGENERATOR_H_
OLDNEW
« no previous file with comments | « skia/ext/SkMemory_new_handler.cpp ('k') | sky/engine/platform/graphics/DecodingImageGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698