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

Unified Diff: include/core/SkDevice.h

Issue 197123003: Proposed SkCanvas API for preLoading textures to VRAM v2.0 (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: address code review comments Created 6 years, 9 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 | include/core/SkPicture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDevice.h
===================================================================
--- include/core/SkDevice.h (revision 13762)
+++ include/core/SkDevice.h (working copy)
@@ -178,6 +178,20 @@
#endif
};
+ /**
reed1 2014/03/13 18:33:55 Not sure I follow why we have two of these. - does
robertphillips 2014/03/13 19:58:28 There are two possible landing points for this. In
+ * PRIVATE / EXPERIMENTAL -- do not call
+ * Construct an acceleration object and attach it to 'picture'
+ */
+ virtual void EXPERIMENTAL_optimize(SkPicture* picture);
+
+ /**
+ * PRIVATE / EXPERIMENTAL -- do not call
+ * Possibly use the results of an earlier 'optimize' call to render 'picture'.
+ * Return true if all rendering has been done; false if the caller
+ * (i.e., SkCanvas) should render normally.
+ */
+ virtual bool EXPERIMENTAL_optimizedRender(const SkPicture& picture);
+
protected:
enum Usage {
kGeneral_Usage,
« no previous file with comments | « no previous file | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698