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

Unified Diff: include/core/SkCanvas.h

Issue 546493002: remove getTotalClipAsPath, privatize getTotalClip (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: namespaces are awesome (not) Created 6 years, 3 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 | « no previous file | src/core/SkCanvas.cpp » ('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 a619904f45a811f180256e5f749b87312116339a..3043a3ee6264d4dae87fe40824370fd2da242965 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -37,6 +37,12 @@ class SkTextBlob;
class GrContext;
class GrRenderTarget;
+class SkCanvasState;
+
+namespace SkCanvasStateUtils {
+ SkCanvasState* CaptureCanvasState(SkCanvas*);// needs gettotalclip()
+}
+
/** \class SkCanvas
A Canvas encapsulates all of the state about drawing into a device (bitmap).
@@ -1182,10 +1188,6 @@ public:
};
// don't call
- const SkRegion& internal_private_getTotalClip() const;
- // don't call
- void internal_private_getTotalClipAsPath(SkPath*) const;
- // don't call
GrRenderTarget* internal_private_accessTopLayerRenderTarget();
protected:
@@ -1307,7 +1309,9 @@ private:
friend class SkDebugCanvas; // needs experimental fAllowSimplifyClip
friend class SkDeferredDevice; // needs getTopDevice()
friend class SkSurface_Raster; // needs getDevice()
-
+
+ friend SkCanvasState* SkCanvasStateUtils::CaptureCanvasState(SkCanvas*);// needs gettotalclip()
+
SkBaseDevice* createLayerDevice(const SkImageInfo&);
SkBaseDevice* init(SkBaseDevice*);
@@ -1350,6 +1354,9 @@ private:
const char text[], size_t byteLength,
SkScalar x, SkScalar y);
+ // only for canvasutils
+ const SkRegion& internal_private_getTotalClip() const;
+
/* These maintain a cache of the clip bounds in local coordinates,
(converted to 2s-compliment if floats are slow).
*/
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698