diff options
author | ctguil@chromium.org <ctguil@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-27 00:10:51 +0000 |
---|---|---|
committer | ctguil@chromium.org <ctguil@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-27 00:10:51 +0000 |
commit | 9510ccc06bbfa5e888f66578042674be98d8ac60 (patch) | |
tree | 2136e3b0f5c065a90e4f42f97ed7b333f7537bf1 /include | |
parent | 50398bf7f1953e640e5529616e710cf540799731 (diff) |
Cleanup from r1843 based on revision comments.
Review URL: http://codereview.appspot.com/4794044
git-svn-id: http://skia.googlecode.com/svn/trunk@1966 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/pdf/SkPDFDevice.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h index 1a0807aa67..df4f3341cf 100644 --- a/include/pdf/SkPDFDevice.h +++ b/include/pdf/SkPDFDevice.h @@ -112,13 +112,18 @@ public: const SkPaint&); enum DrawingArea { - kContent_DrawingArea, // Drawing area for the page content. - kMargin_DrawingArea, // Drawing area for the margin content. + kContent_DrawingArea, // Drawing area for the page content. + kMargin_DrawingArea, // Drawing area for the margin content. }; /** Sets the drawing area for the device. Subsequent draw calls are directed * to the specific drawing area (margin or content). The default drawing * area is the content drawing area. + * + * Currently if margin content is drawn and then a complex (for PDF) xfer + * mode is used, like SrcIn, Clear, etc, the margin content will get + * clipped. A simple way to avoid the bug is to always draw the margin + * content last. */ void setDrawingArea(DrawingArea drawingArea); @@ -187,7 +192,7 @@ private: DrawingArea fDrawingArea; // Accessor and setter functions based on the current DrawingArea. - SkTScopedPtr<ContentEntry>& getContentEntries(); + SkTScopedPtr<ContentEntry>* getContentEntries(); ContentEntry* getLastContentEntry(); void setLastContentEntry(ContentEntry* contentEntry); @@ -253,7 +258,7 @@ private: * list of content entries |entry| to |data|. */ void copyContentEntriesToData(ContentEntry* entry, SkWStream* data) const; - + // Disable the default copy and assign implementation. SkPDFDevice(const SkPDFDevice&); void operator=(const SkPDFDevice&); |