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

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

Issue 15894005: Moving updateClipConservativelyUsingBounds into SkCanvas (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | src/core/SkCanvas.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkCanvas_DEFINED 10 #ifndef SkCanvas_DEFINED
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 987
988 // all of the drawBitmap variants call this guy 988 // all of the drawBitmap variants call this guy
989 void commonDrawBitmap(const SkBitmap&, const SkIRect*, const SkMatrix&, 989 void commonDrawBitmap(const SkBitmap&, const SkIRect*, const SkMatrix&,
990 const SkPaint& paint); 990 const SkPaint& paint);
991 991
992 // Clip rectangle bounds. Called internally by saveLayer. 992 // Clip rectangle bounds. Called internally by saveLayer.
993 // returns false if the entire rectangle is entirely clipped out 993 // returns false if the entire rectangle is entirely clipped out
994 bool clipRectBounds(const SkRect* bounds, SaveFlags flags, 994 bool clipRectBounds(const SkRect* bounds, SaveFlags flags,
995 SkIRect* intersection); 995 SkIRect* intersection);
996 996
997 // Called by child classes that override clipPath and clipRRect to only
998 // track fast conservative clip bounds, rather than exact clips.
999 bool updateClipConservativelyUsingBounds(const SkRect&, SkRegion::Op,
1000 bool inverseFilled);
1001
997 // notify our surface (if we have one) that we are about to draw, so it 1002 // notify our surface (if we have one) that we are about to draw, so it
998 // can perform copy-on-write or invalidate any cached images 1003 // can perform copy-on-write or invalidate any cached images
999 void predrawNotify(); 1004 void predrawNotify();
1000 1005
1001 /** DEPRECATED -- use constructor(device) 1006 /** DEPRECATED -- use constructor(device)
1002 1007
1003 Marked as 'protected' to avoid new clients using this before we can 1008 Marked as 'protected' to avoid new clients using this before we can
1004 completely remove it. 1009 completely remove it.
1005 1010
1006 Specify a device for this canvas to draw into. If it is not null, its 1011 Specify a device for this canvas to draw into. If it is not null, its
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 fCanvas = NULL; 1137 fCanvas = NULL;
1133 } 1138 }
1134 } 1139 }
1135 1140
1136 private: 1141 private:
1137 SkCanvas* fCanvas; 1142 SkCanvas* fCanvas;
1138 int fSaveCount; 1143 int fSaveCount;
1139 }; 1144 };
1140 1145
1141 #endif 1146 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698