diff options
author | 2014-06-30 09:05:34 -0700 | |
---|---|---|
committer | 2014-06-30 09:05:34 -0700 | |
commit | 52d9ac6c92ddf33b3b05eb77ba9509a7aa441657 (patch) | |
tree | f9ceeceda78cb8e92ba4e8ac57b5fb680c85d576 /include/core/SkCanvas.h | |
parent | f3d15dc13abb825946ccad514412699828d5d709 (diff) |
stop calling SkCanvas::getDevice
BUG=skia:
R=bsalomon@google.com, robertphillips@google.com, junov@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/355193006
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r-- | include/core/SkCanvas.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 7a4ddd935f..c114eb2218 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -164,7 +164,11 @@ public: * the bitmap of the pixels that the canvas draws into. The reference count * of the returned device is not changed by this call. */ +#ifndef SK_SUPPORT_LEGACY_GETDEVICE +protected: // Can we make this private? +#endif SkBaseDevice* getDevice() const; +public: /** * saveLayer() can create another device (which is later drawn onto @@ -1270,6 +1274,7 @@ private: friend class SkLua; // needs top layer size and offset friend class SkDebugCanvas; // needs experimental fAllowSimplifyClip friend class SkDeferredDevice; // needs getTopDevice() + friend class SkSurface_Raster; // needs getDevice() SkBaseDevice* createLayerDevice(const SkImageInfo&); |