Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: src/pdf/SkPDFBitmap.h

Issue 966863002: PDF: Canon now owns a reference to all interned objects (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-02-27 (Friday) 15:27:08 EST Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/doc/SkDocument_PDF.cpp ('k') | src/pdf/SkPDFBitmap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 #ifndef SkPDFBitmap_DEFINED 7 #ifndef SkPDFBitmap_DEFINED
8 #define SkPDFBitmap_DEFINED 8 #define SkPDFBitmap_DEFINED
9 9
10 #include "SkPDFTypes.h" 10 #include "SkPDFTypes.h"
(...skipping 22 matching lines...) Expand all
33 void emitObject(SkWStream*, SkPDFCatalog*) SK_OVERRIDE; 33 void emitObject(SkWStream*, SkPDFCatalog*) SK_OVERRIDE;
34 void addResources(SkTSet<SkPDFObject*>* resourceSet, 34 void addResources(SkTSet<SkPDFObject*>* resourceSet,
35 SkPDFCatalog* catalog) const SK_OVERRIDE; 35 SkPDFCatalog* catalog) const SK_OVERRIDE;
36 bool equals(const SkBitmap& other) const { 36 bool equals(const SkBitmap& other) const {
37 return fBitmap.getGenerationID() == other.getGenerationID() && 37 return fBitmap.getGenerationID() == other.getGenerationID() &&
38 fBitmap.pixelRefOrigin() == other.pixelRefOrigin() && 38 fBitmap.pixelRefOrigin() == other.pixelRefOrigin() &&
39 fBitmap.dimensions() == other.dimensions(); 39 fBitmap.dimensions() == other.dimensions();
40 } 40 }
41 41
42 private: 42 private:
43 SkPDFCanon* const fCanon;
44 const SkBitmap fBitmap; 43 const SkBitmap fBitmap;
45 const SkAutoTUnref<SkPDFObject> fSMask; 44 const SkAutoTUnref<SkPDFObject> fSMask;
46 SkPDFBitmap(SkPDFCanon*, const SkBitmap&, SkPDFObject*); 45 SkPDFBitmap(const SkBitmap&, SkPDFObject*);
47 void emitDict(SkWStream*, SkPDFCatalog*, size_t, bool) const; 46 void emitDict(SkWStream*, SkPDFCatalog*, size_t, bool) const;
48 }; 47 };
49 48
50 #endif // SkPDFBitmap_DEFINED 49 #endif // SkPDFBitmap_DEFINED
OLDNEW
« no previous file with comments | « src/doc/SkDocument_PDF.cpp ('k') | src/pdf/SkPDFBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698