OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2016 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file |
| 6 */ |
| 7 |
| 8 #ifndef TestingSpecialImageAccess_DEFINED |
| 9 #define TestingSpecialImageAccess_DEFINED |
| 10 |
| 11 class TestingSpecialImageAccess { |
| 12 public: |
| 13 static const SkIRect& Subset(const SkSpecialImage* img) { |
| 14 return img->subset(); |
| 15 } |
| 16 |
| 17 static bool PeekPixels(const SkSpecialImage* img, SkPixmap* pixmap) { |
| 18 return img->peekPixels(pixmap); |
| 19 } |
| 20 |
| 21 static GrTexture* PeekTexture(const SkSpecialImage* img) { |
| 22 return img->peekTexture(); |
| 23 } |
| 24 |
| 25 static bool GetROPixels(const SkSpecialImage* img, SkBitmap* result) { |
| 26 return img->getROPixels(result); |
| 27 } |
| 28 }; |
| 29 |
| 30 #endif |
OLD | NEW |