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

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

Issue 12567025: Integrating SkSurface with SkDeferredCanvas (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
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 SkSurface_DEFINED 8 #ifndef SkSurface_DEFINED
9 #define SkSurface_DEFINED 9 #define SkSurface_DEFINED
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 * method will return a new value. 74 * method will return a new value.
75 * 75 *
76 * If this surface is empty (i.e. has a zero-dimention), this will return 76 * If this surface is empty (i.e. has a zero-dimention), this will return
77 * 0. 77 * 0.
78 */ 78 */
79 uint32_t generationID(); 79 uint32_t generationID();
80 80
81 /** 81 /**
82 * Call this if the contents have changed. This will (lazily) force a new 82 * Call this if the contents have changed. This will (lazily) force a new
83 * value to be returned from generationID() when it is called next. 83 * value to be returned from generationID() when it is called next.
84 * @param overwrite For performance, set to true when it is known that
85 * previous contents are completely overwritten (e.g. clear).
84 */ 86 */
85 void notifyContentChanged(); 87 void notifyContentChanged(bool overwrite = false);
Stephen White 2013/03/26 20:51:44 Bikeshed nit: maybe "willOverwrite", if it hasn't
86 88
87 /** 89 /**
88 * Return a canvas that will draw into this surface. This will always 90 * Return a canvas that will draw into this surface. This will always
89 * return the same canvas for a given surface, and is manged/owned by the 91 * return the same canvas for a given surface, and is manged/owned by the
90 * surface. It should not be used when its parent surface has gone out of 92 * surface. It should not be used when its parent surface has gone out of
91 * scope. 93 * scope.
92 */ 94 */
93 SkCanvas* getCanvas(); 95 SkCanvas* getCanvas();
94 96
95 /** 97 /**
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 135
134 private: 136 private:
135 const int fWidth; 137 const int fWidth;
136 const int fHeight; 138 const int fHeight;
137 uint32_t fGenerationID; 139 uint32_t fGenerationID;
138 140
139 typedef SkRefCnt INHERITED; 141 typedef SkRefCnt INHERITED;
140 }; 142 };
141 143
142 #endif 144 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698