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

Side by Side Diff: include/core/SkCanvas.h

Issue 1911893002: Add compile guard for SkCanvas::LayerIter (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 unified diff | Download patch
« no previous file with comments | « no previous file | public.bzl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 typedef SkCanvasClipVisitor ClipVisitor; 1213 typedef SkCanvasClipVisitor ClipVisitor;
1214 /** 1214 /**
1215 * Replays the clip operations, back to front, that have been applied to 1215 * Replays the clip operations, back to front, that have been applied to
1216 * the canvas, calling the appropriate method on the visitor for each 1216 * the canvas, calling the appropriate method on the visitor for each
1217 * clip. All clips have already been transformed into device space. 1217 * clip. All clips have already been transformed into device space.
1218 */ 1218 */
1219 void replayClips(ClipVisitor*) const; 1219 void replayClips(ClipVisitor*) const;
1220 1220
1221 /////////////////////////////////////////////////////////////////////////// 1221 ///////////////////////////////////////////////////////////////////////////
1222 1222
1223 #ifndef SK_SUPPORT_LEGACY_LAYERITER
1223 protected: 1224 protected:
1225 #endif
1224 /** After calling saveLayer(), there can be any number of devices that make 1226 /** After calling saveLayer(), there can be any number of devices that make
1225 up the top-most drawing area. LayerIter can be used to iterate through 1227 up the top-most drawing area. LayerIter can be used to iterate through
1226 those devices. Note that the iterator is only valid until the next API 1228 those devices. Note that the iterator is only valid until the next API
1227 call made on the canvas. Ownership of all pointers in the iterator stays 1229 call made on the canvas. Ownership of all pointers in the iterator stays
1228 with the canvas, so none of them should be modified or deleted. 1230 with the canvas, so none of them should be modified or deleted.
1229 */ 1231 */
1230 class SK_API LayerIter /*: SkNoncopyable*/ { 1232 class SK_API LayerIter /*: SkNoncopyable*/ {
1231 public: 1233 public:
1232 /** Initialize iterator with canvas, and set values for 1st device */ 1234 /** Initialize iterator with canvas, and set values for 1st device */
1233 LayerIter(SkCanvas*, bool skipEmptyClips); 1235 LayerIter(SkCanvas*, bool skipEmptyClips);
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 1582
1581 class SkCanvasClipVisitor { 1583 class SkCanvasClipVisitor {
1582 public: 1584 public:
1583 virtual ~SkCanvasClipVisitor(); 1585 virtual ~SkCanvasClipVisitor();
1584 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1586 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1585 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1587 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1586 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1588 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1587 }; 1589 };
1588 1590
1589 #endif 1591 #endif
OLDNEW
« 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