OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #include "SkImageGenerator.h" | 8 #include "SkImageGenerator.h" |
9 | 9 |
10 SkImageGenerator::Result SkImageGenerator::getPixels(const SkImageInfo& info, vo
id* pixels, | 10 SkImageGenerator::Result SkImageGenerator::getPixels(const SkImageInfo& info, vo
id* pixels, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 105 } |
106 return this->onGetYUV8Planes(sizes, planes, rowBytes); | 106 return this->onGetYUV8Planes(sizes, planes, rowBytes); |
107 } | 107 } |
108 | 108 |
109 ////////////////////////////////////////////////////////////////////////////////
///////////// | 109 ////////////////////////////////////////////////////////////////////////////////
///////////// |
110 | 110 |
111 SkData* SkImageGenerator::onRefEncodedData() { | 111 SkData* SkImageGenerator::onRefEncodedData() { |
112 return NULL; | 112 return NULL; |
113 } | 113 } |
114 | 114 |
115 #ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS | |
116 SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo&, void*
, size_t, | |
117 SkPMColor*, int*) { | |
118 return kUnimplemented; | |
119 } | |
120 #endif | |
121 | |
122 SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo& info,
void* dst, | 115 SkImageGenerator::Result SkImageGenerator::onGetPixels(const SkImageInfo& info,
void* dst, |
123 size_t rb, const Options&
options, | 116 size_t rb, const Options&
options, |
124 SkPMColor* colors, int* c
olorCount) { | 117 SkPMColor* colors, int* c
olorCount) { |
125 #ifdef SK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS | |
126 return this->onGetPixels(info, dst, rb, colors, colorCount); | |
127 #else | |
128 return kUnimplemented; | 118 return kUnimplemented; |
129 #endif | |
130 } | 119 } |
OLD | NEW |