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

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: Attempt to dissuage the adventurous from trying the new interface (for real this time) 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') | include/core/SkPicture.h » ('J')
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
};
+ /**
+ * 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(SkPicture& picture);
reed1 2014/03/13 16:28:10 why & instead of * ?
robertphillips 2014/03/13 16:55:39 Done. I was mirroring SkCanvas::drawPicture.
+
protected:
enum Usage {
kGeneral_Usage,
« no previous file with comments | « no previous file | include/core/SkPicture.h » ('j') | include/core/SkPicture.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698