| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkPixelRef.h" | 8 #include "SkPixelRef.h" |
| 9 #include "SkThread.h" | 9 #include "SkThread.h" |
| 10 | 10 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 } | 190 } |
| 191 | 191 |
| 192 bool SkPixelRef::lockPixelsAreWritable() const { | 192 bool SkPixelRef::lockPixelsAreWritable() const { |
| 193 return this->onLockPixelsAreWritable(); | 193 return this->onLockPixelsAreWritable(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 bool SkPixelRef::onLockPixelsAreWritable() const { | 196 bool SkPixelRef::onLockPixelsAreWritable() const { |
| 197 return true; | 197 return true; |
| 198 } | 198 } |
| 199 | 199 |
| 200 bool SkPixelRef::onImplementsDecodeInto() { |
| 201 return false; |
| 202 } |
| 203 |
| 204 bool SkPixelRef::onDecodeInto(int pow2, SkBitmap* bitmap) { |
| 205 return false; |
| 206 } |
| 207 |
| 200 uint32_t SkPixelRef::getGenerationID() const { | 208 uint32_t SkPixelRef::getGenerationID() const { |
| 201 if (0 == fGenerationID) { | 209 if (0 == fGenerationID) { |
| 202 fGenerationID = SkNextPixelRefGenerationID(); | 210 fGenerationID = SkNextPixelRefGenerationID(); |
| 203 fUniqueGenerationID = true; // The only time we can be sure of this! | 211 fUniqueGenerationID = true; // The only time we can be sure of this! |
| 204 } | 212 } |
| 205 return fGenerationID; | 213 return fGenerationID; |
| 206 } | 214 } |
| 207 | 215 |
| 208 void SkPixelRef::addGenIDChangeListener(GenIDChangeListener* listener) { | 216 void SkPixelRef::addGenIDChangeListener(GenIDChangeListener* listener) { |
| 209 if (NULL == listener || !fUniqueGenerationID) { | 217 if (NULL == listener || !fUniqueGenerationID) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 265 |
| 258 bool SkPixelRef::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy
tes[3], | 266 bool SkPixelRef::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy
tes[3], |
| 259 SkYUVColorSpace* colorSpace) { | 267 SkYUVColorSpace* colorSpace) { |
| 260 return false; | 268 return false; |
| 261 } | 269 } |
| 262 | 270 |
| 263 size_t SkPixelRef::getAllocatedSizeInBytes() const { | 271 size_t SkPixelRef::getAllocatedSizeInBytes() const { |
| 264 return 0; | 272 return 0; |
| 265 } | 273 } |
| 266 | 274 |
| OLD | NEW |