aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-07-18 08:31:31 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-18 08:31:31 -0700
commit6451a0cea6007aff54565ec82e2f86cb1d32ecc7 (patch)
treec9643e2e2cfc4e8152be249ea5ab4716ed43825e /include
parentf023e6879c63e5d223e89707a714f18688a93a4a (diff)
Add makeSpecial calls to SkGpuDevice
Diffstat (limited to 'include')
-rw-r--r--include/core/SkDevice.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index e960003f9a..864f71225f 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -22,6 +22,7 @@ struct SkIRect;
class SkMatrix;
class SkMetaData;
class SkRegion;
+class SkSpecialImage;
class GrRenderTarget;
class SK_API SkBaseDevice : public SkRefCnt {
@@ -276,6 +277,11 @@ protected:
virtual void drawTextRSXform(const SkDraw&, const void* text, size_t len, const SkRSXform[],
const SkPaint&);
+ virtual void drawSpecial(const SkDraw&, SkSpecialImage*, int x, int y, const SkPaint&);
+ virtual sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&);
+ virtual sk_sp<SkSpecialImage> makeSpecial(SkImage*);
+ virtual sk_sp<SkSpecialImage> snapSpecial();
+
bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y);
///////////////////////////////////////////////////////////////////////////
@@ -369,6 +375,7 @@ private:
friend class SkDeviceFilteredPaint;
friend class SkNoPixelsBitmapDevice;
friend class SkSurface_Raster;
+ friend class DeviceTestingAccess;
// used to change the backend's pixels (and possibly config/rowbytes)
// but cannot change the width/height, so there should be no change to