Chromium Code Reviews| 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, |