| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #include "SkPixelRef.h" | 8 #include "SkPixelRef.h" |
| 9 #include "SkFlattenableBuffers.h" | 9 #include "SkFlattenableBuffers.h" |
| 10 #include "SkThread.h" | 10 #include "SkThread.h" |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 } | 240 } |
| 241 | 241 |
| 242 bool SkPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) { | 242 bool SkPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) { |
| 243 return false; | 243 return false; |
| 244 } | 244 } |
| 245 | 245 |
| 246 SkData* SkPixelRef::onRefEncodedData() { | 246 SkData* SkPixelRef::onRefEncodedData() { |
| 247 return NULL; | 247 return NULL; |
| 248 } | 248 } |
| 249 | 249 |
| 250 size_t SkPixelRef::getSize() const { |
| 251 return 0; |
| 252 } |
| 253 |
| 250 /////////////////////////////////////////////////////////////////////////////// | 254 /////////////////////////////////////////////////////////////////////////////// |
| 251 | 255 |
| 252 #ifdef SK_BUILD_FOR_ANDROID | 256 #ifdef SK_BUILD_FOR_ANDROID |
| 253 void SkPixelRef::globalRef(void* data) { | 257 void SkPixelRef::globalRef(void* data) { |
| 254 this->ref(); | 258 this->ref(); |
| 255 } | 259 } |
| 256 | 260 |
| 257 void SkPixelRef::globalUnref() { | 261 void SkPixelRef::globalUnref() { |
| 258 this->unref(); | 262 this->unref(); |
| 259 } | 263 } |
| 260 #endif | 264 #endif |
| OLD | NEW |