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

Unified Diff: include/core/SkPicture.h

Issue 195793010: Add a means of extracting active operations from SkPicture (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Add EXPERIMENTAL prefix to the new entry point 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 | src/core/SkPicture.cpp » ('j') | src/core/SkPicturePlayback.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
===================================================================
--- include/core/SkPicture.h (revision 13766)
+++ include/core/SkPicture.h (working copy)
@@ -13,6 +13,7 @@
#include "SkBitmap.h"
#include "SkImageDecoder.h"
#include "SkRefCnt.h"
+#include "SkTDArray.h"
class SkBBoxHierarchy;
class SkCanvas;
@@ -148,6 +149,13 @@
*/
void endRecording();
+ /** PRIVATE / EXPERIMENTAL -- do not call
+ Return the operations required to render the content inside
+ queryRect. A NULL return value means all the operations are needed.
+ A non-NULL but zero sized array means there is nothing to draw.
+ */
+ const SkTDArray<void*>* EXPERIMENTAL_getActiveOps(const SkIRect& queryRect);
+
/** Replays the drawing commands on the specified canvas. This internally
calls endRecording() if that has not already been called.
@param canvas the canvas receiving the drawing commands.
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | src/core/SkPicturePlayback.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698