| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 } | 246 } |
| 247 | 247 |
| 248 bool SkPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) { | 248 bool SkPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) { |
| 249 return false; | 249 return false; |
| 250 } | 250 } |
| 251 | 251 |
| 252 SkData* SkPixelRef::onRefEncodedData() { | 252 SkData* SkPixelRef::onRefEncodedData() { |
| 253 return NULL; | 253 return NULL; |
| 254 } | 254 } |
| 255 | 255 |
| 256 bool SkPixelRef::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy
tes[3]) { | 256 bool SkPixelRef::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy
tes[3], |
| 257 SkYUVColorSpace* colorSpace) { |
| 257 return false; | 258 return false; |
| 258 } | 259 } |
| 259 | 260 |
| 260 size_t SkPixelRef::getAllocatedSizeInBytes() const { | 261 size_t SkPixelRef::getAllocatedSizeInBytes() const { |
| 261 return 0; | 262 return 0; |
| 262 } | 263 } |
| 263 | 264 |
| 264 /////////////////////////////////////////////////////////////////////////////// | 265 /////////////////////////////////////////////////////////////////////////////// |
| 265 | 266 |
| 266 #ifdef SK_BUILD_FOR_ANDROID | 267 #ifdef SK_BUILD_FOR_ANDROID |
| 267 void SkPixelRef::globalRef(void* data) { | 268 void SkPixelRef::globalRef(void* data) { |
| 268 this->ref(); | 269 this->ref(); |
| 269 } | 270 } |
| 270 | 271 |
| 271 void SkPixelRef::globalUnref() { | 272 void SkPixelRef::globalUnref() { |
| 272 this->unref(); | 273 this->unref(); |
| 273 } | 274 } |
| 274 #endif | 275 #endif |
| OLD | NEW |