aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/PdfViewer/SkTrackDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/PdfViewer/SkTrackDevice.h')
-rw-r--r--experimental/PdfViewer/SkTrackDevice.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/experimental/PdfViewer/SkTrackDevice.h b/experimental/PdfViewer/SkTrackDevice.h
index 20f9e6867e..6018fcd30c 100644
--- a/experimental/PdfViewer/SkTrackDevice.h
+++ b/experimental/PdfViewer/SkTrackDevice.h
@@ -16,6 +16,11 @@
* A Track Device is used to track that callstack of an operation that affected some pixels.
* It can be used with SampleApp to investigate bugs (CL not checked in yet).
*
+ * every drawFoo is implemented as such:
+ * before(); // - collects state of interesting pixels
+ * INHERITED::drawFoo(...);
+ * after(); // - checks if pixels of interest, and issue a breakpoint.
+ *
*/
class SkTrackDevice : public SkBitmapDevice {
public:
@@ -39,6 +44,8 @@ public:
virtual ~SkTrackDevice() {}
+ // Install a tracker - we can reuse the tracker between multiple devices, and the state of the
+ // tracker is preserved - number and location of poinbts, ...
void installTracker(SkTracker* tracker) {
fTracker = tracker;
fTracker->newFrame();