OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkDiscardablePixelRef_DEFINED | 8 #ifndef SkDiscardablePixelRef_DEFINED |
9 #define SkDiscardablePixelRef_DEFINED | 9 #define SkDiscardablePixelRef_DEFINED |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 SkDiscardableMemory* fDiscardableMemory; | 43 SkDiscardableMemory* fDiscardableMemory; |
44 SkAutoTUnref<SkColorTable> fCTable; | 44 SkAutoTUnref<SkColorTable> fCTable; |
45 | 45 |
46 /* Takes ownership of SkImageGenerator. */ | 46 /* Takes ownership of SkImageGenerator. */ |
47 SkDiscardablePixelRef(const SkImageInfo&, SkImageGenerator*, | 47 SkDiscardablePixelRef(const SkImageInfo&, SkImageGenerator*, |
48 size_t rowBytes, | 48 size_t rowBytes, |
49 SkDiscardableMemory::Factory* factory); | 49 SkDiscardableMemory::Factory* factory); |
50 | 50 |
51 virtual bool onGetYUV8Planes(SkISize sizes[3], | 51 virtual bool onGetYUV8Planes(SkISize sizes[3], |
52 void* planes[3], | 52 void* planes[3], |
53 size_t rowBytes[3]) SK_OVERRIDE { | 53 size_t rowBytes[3], |
54 return fGenerator->getYUV8Planes(sizes, planes, rowBytes); | 54 SkYUVColorSpace* colorSpace) SK_OVERRIDE { |
| 55 return fGenerator->getYUV8Planes(sizes, planes, rowBytes, colorSpace); |
55 } | 56 } |
56 | 57 |
57 friend bool SkInstallDiscardablePixelRef(SkImageGenerator*, SkBitmap*, | 58 friend bool SkInstallDiscardablePixelRef(SkImageGenerator*, SkBitmap*, |
58 SkDiscardableMemory::Factory*); | 59 SkDiscardableMemory::Factory*); |
59 | 60 |
60 typedef SkPixelRef INHERITED; | 61 typedef SkPixelRef INHERITED; |
61 }; | 62 }; |
62 | 63 |
63 #endif // SkDiscardablePixelRef_DEFINED | 64 #endif // SkDiscardablePixelRef_DEFINED |
OLD | NEW |