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

Side by Side Diff: src/pipe/SkPipeCanvas.h

Issue 2347593004: test/fix/tweak writePicture/readPicture (Closed)
Patch Set: remove dead code Created 4 years, 3 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/core/SkPipe.h ('k') | src/pipe/SkPipeCanvas.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 2016 Google Inc. 2 * Copyright 2016 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 #ifndef SkPipeCanvas_DEFINED 8 #ifndef SkPipeCanvas_DEFINED
9 #define SkPipeCanvas_DEFINED 9 #define SkPipeCanvas_DEFINED
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 fTypefaces.reset(); 59 fTypefaces.reset();
60 fFactories.reset(); 60 fFactories.reset();
61 } 61 }
62 62
63 void setCanvas(SkPipeCanvas* canvas) { fPipeCanvas = canvas; } 63 void setCanvas(SkPipeCanvas* canvas) { fPipeCanvas = canvas; }
64 void setStream(SkWStream* stream) { fStream = stream; } 64 void setStream(SkWStream* stream) { fStream = stream; }
65 void setTypefaceSerializer(SkTypefaceSerializer* tfs) { fTFSerializer = tfs; } 65 void setTypefaceSerializer(SkTypefaceSerializer* tfs) { fTFSerializer = tfs; }
66 66
67 // returns 0 if not found 67 // returns 0 if not found
68 int findImage(SkImage* image) const { return fImages.find(image->uniqueID()) ; } 68 int findImage(SkImage* image) const { return fImages.find(image->uniqueID()) ; }
69 int findPicture(SkPicture* picture) const { return fPictures.find(picture->u niqueID()); }
69 70
70 int findOrDefineImage(SkImage*) override; 71 int findOrDefineImage(SkImage*) override;
71 int findOrDefinePicture(SkPicture*) override; 72 int findOrDefinePicture(SkPicture*) override;
72 int findOrDefineTypeface(SkTypeface*) override; 73 int findOrDefineTypeface(SkTypeface*) override;
73 int findOrDefineFactory(SkFlattenable*) override; 74 int findOrDefineFactory(SkFlattenable*) override;
74 75
75 private: 76 private:
76 SkPipeCanvas* fPipeCanvas = nullptr; 77 SkPipeCanvas* fPipeCanvas = nullptr;
77 SkWStream* fStream = nullptr; 78 SkWStream* fStream = nullptr;
78 79
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 SkPipeDeduper* fDeduper; 161 SkPipeDeduper* fDeduper;
161 SkWStream* fStream; 162 SkWStream* fStream;
162 163
163 friend class SkPipeWriter; 164 friend class SkPipeWriter;
164 165
165 typedef SkCanvas INHERITED; 166 typedef SkCanvas INHERITED;
166 }; 167 };
167 168
168 169
169 #endif 170 #endif
OLDNEW
« no previous file with comments | « src/core/SkPipe.h ('k') | src/pipe/SkPipeCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698