Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: include/core/SkCanvas.h

Issue 181653004: Revert of Add getReducedClipStack to lua canvas (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/tools.gyp ('k') | include/utils/SkLua.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index e9d4933d177112fed795e36746e3d482e414d4a8..e639212e384b0f58dda00b3e8086cbe03a059688 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -90,16 +90,12 @@
void flush();
/**
- * Gets the size of the base or root layer in global canvas coordinates. The
- * origin of the base layer is always (0,0). The current drawable area may be
- * smaller (due to clipping or saveLayer).
- */
- SkISize getBaseLayerSize() const;
-
- /**
- * DEPRECATED: call getBaseLayerSize
- */
- SkISize getDeviceSize() const { return this->getBaseLayerSize(); }
+ * DEPRECATED: call imageInfo() instead.
+ * Return the width/height of the underlying device. The current drawable
+ * area may be small (due to clipping or saveLayer). For a canvas with
+ * no device, 0,0 will be returned.
+ */
+ SkISize getDeviceSize() const;
/**
* DEPRECATED.
@@ -1133,7 +1129,6 @@
friend class SkDrawIter; // needs setupDrawForLayerDevice()
friend class AutoDrawLooper;
- friend class SkLua; // needs top layer size and offset
SkBaseDevice* createLayerDevice(const SkImageInfo&);
@@ -1148,12 +1143,6 @@
*/
SkBaseDevice* setRootDevice(SkBaseDevice* device);
- /**
- * Gets the size/origin of the top level layer in global canvas coordinates. We don't want this
- * to be public because it exposes decisions about layer sizes that are internal to the canvas.
- */
- SkISize getTopLayerSize() const;
- SkIPoint getTopLayerOrigin() const;
// internal methods are not virtual, so they can safely be called by other
// canvas apis, without confusing subclasses (like SkPictureRecording)
« no previous file with comments | « gyp/tools.gyp ('k') | include/utils/SkLua.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698