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, |