Index: include/core/SkDevice.h |
=================================================================== |
--- include/core/SkDevice.h (revision 13762) |
+++ include/core/SkDevice.h (working copy) |
@@ -178,6 +178,18 @@ |
#endif |
}; |
+ /** |
+ * Construct an acceleration object and attach it to 'picture' |
+ */ |
+ virtual void optimize(SkPicture* picture); |
+ |
+ /** |
+ * 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 optimizedRender(SkPicture& picture); |
+ |
protected: |
enum Usage { |
kGeneral_Usage, |