diff options
author | 2013-10-11 18:26:45 +0000 | |
---|---|---|
committer | 2013-10-11 18:26:45 +0000 | |
commit | d03c2c732e2e914f8429cfc8b077a7b9b853dd8e (patch) | |
tree | 9a4b77a021ff95bf1042f7d80b4225c49d7c8041 /experimental/PdfViewer/SkTrackDevice.h | |
parent | 29d4e638641d6d089a0361619ff2a583fd1a827f (diff) |
pdfviewer: more code comments + concat the pdf matrix with the existing matrix in canvas, instead of reseting it.
Review URL: https://codereview.chromium.org/27057003
git-svn-id: http://skia.googlecode.com/svn/trunk@11735 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/PdfViewer/SkTrackDevice.h')
-rw-r--r-- | experimental/PdfViewer/SkTrackDevice.h | 7 |
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(); |