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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 } | 256 } |
257 | 257 |
258 bool SkPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) { | 258 bool SkPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) { |
259 return false; | 259 return false; |
260 } | 260 } |
261 | 261 |
262 SkData* SkPixelRef::onRefEncodedData() { | 262 SkData* SkPixelRef::onRefEncodedData() { |
263 return NULL; | 263 return NULL; |
264 } | 264 } |
265 | 265 |
266 bool SkPixelRef::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBy
tes[3], | |
267 SkYUVColorSpace* colorSpace) { | |
268 return false; | |
269 } | |
270 | |
271 size_t SkPixelRef::getAllocatedSizeInBytes() const { | 266 size_t SkPixelRef::getAllocatedSizeInBytes() const { |
272 return 0; | 267 return 0; |
273 } | 268 } |
274 | 269 |
275 /////////////////////////////////////////////////////////////////////////////// | 270 /////////////////////////////////////////////////////////////////////////////// |
276 | 271 |
277 #ifdef SK_BUILD_FOR_ANDROID | 272 #ifdef SK_BUILD_FOR_ANDROID |
278 void SkPixelRef::globalRef(void* data) { | 273 void SkPixelRef::globalRef(void* data) { |
279 this->ref(); | 274 this->ref(); |
280 } | 275 } |
281 | 276 |
282 void SkPixelRef::globalUnref() { | 277 void SkPixelRef::globalUnref() { |
283 this->unref(); | 278 this->unref(); |
284 } | 279 } |
285 #endif | 280 #endif |
OLD | NEW |