diff options
author | ctguil@chromium.org <ctguil@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-24 19:55:05 +0000 |
---|---|---|
committer | ctguil@chromium.org <ctguil@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-24 19:55:05 +0000 |
commit | f4ff39ca4854d64fce9189745af615bb9bc37faa (patch) | |
tree | 0cfc6cc3a3593e6643a55f0f3c8f2d8093bb6125 /src | |
parent | 5b32529ab855764bf40f678f10d0e3045b990a94 (diff) |
Cleanup: Use member function isContentEmpty().
Review URL: http://codereview.appspot.com/4556058
git-svn-id: http://skia.googlecode.com/svn/trunk@1412 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 10b4ededaf..17ea5ddb5c 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -920,8 +920,7 @@ void SkPDFDevice::drawDevice(const SkDraw& d, SkDevice* device, int x, int y, // Assume that a vector capable device means that it's a PDF Device. SkPDFDevice* pdfDevice = static_cast<SkPDFDevice*>(device); - if (!pdfDevice->fContentEntries.get() || - !pdfDevice->fContentEntries->fContent.getOffset()) { + if (pdfDevice->isContentEmpty()) { return; } |