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

Unified Diff: include/core/SkCanvas.h

Issue 1917693002: Remove SkCanvas::LayerIter guard (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | public.bzl » ('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 4f15af86477c9cc5f69a7416f7466e1c0606177e..611603715be3df8cc747ff17fe1255bbe2c71c44 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -1220,16 +1220,31 @@ public:
///////////////////////////////////////////////////////////////////////////
-#ifndef SK_SUPPORT_LEGACY_LAYERITER
+ // don't call
+ GrRenderTarget* internal_private_accessTopLayerRenderTarget();
+
+ // don't call
+ static void Internal_Private_SetIgnoreSaveLayerBounds(bool);
+ static bool Internal_Private_GetIgnoreSaveLayerBounds();
+ static void Internal_Private_SetTreatSpriteAsBitmap(bool);
+ static bool Internal_Private_GetTreatSpriteAsBitmap();
+
+ // TEMP helpers until we switch virtual over to const& for src-rect
+ void legacy_drawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst,
+ const SkPaint* paint,
+ SrcRectConstraint constraint = kStrict_SrcRectConstraint);
+ void legacy_drawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst,
+ const SkPaint* paint,
+ SrcRectConstraint constraint = kStrict_SrcRectConstraint);
+
protected:
-#endif
/** After calling saveLayer(), there can be any number of devices that make
up the top-most drawing area. LayerIter can be used to iterate through
those devices. Note that the iterator is only valid until the next API
call made on the canvas. Ownership of all pointers in the iterator stays
with the canvas, so none of them should be modified or deleted.
*/
- class SK_API LayerIter /*: SkNoncopyable*/ {
+ class LayerIter /*: SkNoncopyable*/ {
public:
/** Initialize iterator with canvas, and set values for 1st device */
LayerIter(SkCanvas*, bool skipEmptyClips);
@@ -1261,25 +1276,6 @@ protected:
bool fDone;
};
- public:
- // don't call
- GrRenderTarget* internal_private_accessTopLayerRenderTarget();
-
- // don't call
- static void Internal_Private_SetIgnoreSaveLayerBounds(bool);
- static bool Internal_Private_GetIgnoreSaveLayerBounds();
- static void Internal_Private_SetTreatSpriteAsBitmap(bool);
- static bool Internal_Private_GetTreatSpriteAsBitmap();
-
- // TEMP helpers until we switch virtual over to const& for src-rect
- void legacy_drawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst,
- const SkPaint* paint,
- SrcRectConstraint constraint = kStrict_SrcRectConstraint);
- void legacy_drawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst,
- const SkPaint* paint,
- SrcRectConstraint constraint = kStrict_SrcRectConstraint);
-
-protected:
// default impl defers to getDevice()->newSurface(info)
virtual sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&);
« no previous file with comments | « no previous file | public.bzl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698