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

Side by Side Diff: include/core/SkReadBuffer.h

Issue 463493002: SkCanvas::drawPatch param SkPoint[12] (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Removed GPU headers from GM Created 6 years, 4 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 | « include/core/SkPatch.h ('k') | include/core/SkReader32.h » ('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 2011 Google Inc. 2 * Copyright 2011 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 SkReadBuffer_DEFINED 8 #ifndef SkReadBuffer_DEFINED
9 #define SkReadBuffer_DEFINED 9 #define SkReadBuffer_DEFINED
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual void readString(SkString* string); 101 virtual void readString(SkString* string);
102 virtual void* readEncodedString(size_t* length, SkPaint::TextEncoding encodi ng); 102 virtual void* readEncodedString(size_t* length, SkPaint::TextEncoding encodi ng);
103 103
104 // common data structures 104 // common data structures
105 virtual void readPoint(SkPoint* point); 105 virtual void readPoint(SkPoint* point);
106 SkPoint readPoint() { SkPoint p; this->readPoint(&p); return p; } 106 SkPoint readPoint() { SkPoint p; this->readPoint(&p); return p; }
107 virtual void readMatrix(SkMatrix* matrix); 107 virtual void readMatrix(SkMatrix* matrix);
108 virtual void readIRect(SkIRect* rect); 108 virtual void readIRect(SkIRect* rect);
109 virtual void readRect(SkRect* rect); 109 virtual void readRect(SkRect* rect);
110 virtual void readRegion(SkRegion* region); 110 virtual void readRegion(SkRegion* region);
111 virtual void readPatch(SkPatch* patch); 111
112 virtual void readPath(SkPath* path); 112 virtual void readPath(SkPath* path);
113 void readPaint(SkPaint* paint) { paint->unflatten(*this); } 113 void readPaint(SkPaint* paint) { paint->unflatten(*this); }
114 114
115 virtual SkFlattenable* readFlattenable(SkFlattenable::Type); 115 virtual SkFlattenable* readFlattenable(SkFlattenable::Type);
116 template <typename T> T* readFlattenable() { 116 template <typename T> T* readFlattenable() {
117 return (T*) this->readFlattenable(T::GetFlattenableType()); 117 return (T*) this->readFlattenable(T::GetFlattenableType());
118 } 118 }
119 SkColorFilter* readColorFilter() { return this->readFlattenable<SkColorFilte r>(); } 119 SkColorFilter* readColorFilter() { return this->readFlattenable<SkColorFilte r>(); }
120 SkDrawLooper* readDrawLooper() { return this->readFlattenable<SkDrawLooper >(); } 120 SkDrawLooper* readDrawLooper() { return this->readFlattenable<SkDrawLooper >(); }
121 SkImageFilter* readImageFilter() { return this->readFlattenable<SkImageFilte r>(); } 121 SkImageFilter* readImageFilter() { return this->readFlattenable<SkImageFilte r>(); }
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 SkPicture::InstallPixelRefProc fBitmapDecoder; 225 SkPicture::InstallPixelRefProc fBitmapDecoder;
226 226
227 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT 227 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT
228 // Debugging counter to keep track of how many bitmaps we 228 // Debugging counter to keep track of how many bitmaps we
229 // have decoded. 229 // have decoded.
230 int fDecodedBitmapIndex; 230 int fDecodedBitmapIndex;
231 #endif // DEBUG_NON_DETERMINISTIC_ASSERT 231 #endif // DEBUG_NON_DETERMINISTIC_ASSERT
232 }; 232 };
233 233
234 #endif // SkReadBuffer_DEFINED 234 #endif // SkReadBuffer_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkPatch.h ('k') | include/core/SkReader32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698