OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
9 #include "SkDevice.h" | 9 #include "SkDevice.h" |
10 #include "SkForceLinking.h" | 10 #include "SkForceLinking.h" |
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2006 void SkPdfRenderer::unload() { | 2006 void SkPdfRenderer::unload() { |
2007 delete fPdfDoc; | 2007 delete fPdfDoc; |
2008 fPdfDoc = NULL; | 2008 fPdfDoc = NULL; |
2009 } | 2009 } |
2010 | 2010 |
2011 SkRect SkPdfRenderer::MediaBox(int page) const { | 2011 SkRect SkPdfRenderer::MediaBox(int page) const { |
2012 SkASSERT(fPdfDoc); | 2012 SkASSERT(fPdfDoc); |
2013 return fPdfDoc->MediaBox(page); | 2013 return fPdfDoc->MediaBox(page); |
2014 } | 2014 } |
2015 | 2015 |
2016 size_t SkPdfRenderer::bytesUsed() { | 2016 size_t SkPdfRenderer::bytesUsed() const { |
2017 return fPdfDoc ? fPdfDoc->bytesUsed() : 0; | 2017 return fPdfDoc ? fPdfDoc->bytesUsed() : 0; |
2018 } | 2018 } |
2019 | 2019 |
OLD | NEW |