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