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

Side by Side Diff: src/image/SkImage_Base.h

Issue 1199473002: change old picture serialization to really handle images (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 SkImage_Base_DEFINED 8 #ifndef SkImage_Base_DEFINED
9 #define SkImage_Base_DEFINED 9 #define SkImage_Base_DEFINED
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual bool getROPixels(SkBitmap*) const { return false; } 53 virtual bool getROPixels(SkBitmap*) const { return false; }
54 54
55 virtual SkShader* onNewShader(SkShader::TileMode, 55 virtual SkShader* onNewShader(SkShader::TileMode,
56 SkShader::TileMode, 56 SkShader::TileMode,
57 const SkMatrix* localMatrix) const { return NU LL; }; 57 const SkMatrix* localMatrix) const { return NU LL; };
58 58
59 // newWidth > 0, newHeight > 0, subset either NULL or a proper subset of thi s bounds 59 // newWidth > 0, newHeight > 0, subset either NULL or a proper subset of thi s bounds
60 virtual SkImage* onNewImage(int newWidth, int newHeight, const SkIRect* subs et, 60 virtual SkImage* onNewImage(int newWidth, int newHeight, const SkIRect* subs et,
61 SkFilterQuality) const; 61 SkFilterQuality) const;
62 62
63 virtual SkData* onRefEncodedData(SkIPoint*) const { return NULL; }
64
63 private: 65 private:
64 const SkSurfaceProps fProps; 66 const SkSurfaceProps fProps;
65 67
66 typedef SkImage INHERITED; 68 typedef SkImage INHERITED;
67 }; 69 };
68 70
69 static inline SkImage_Base* as_IB(SkImage* image) { 71 static inline SkImage_Base* as_IB(SkImage* image) {
70 return static_cast<SkImage_Base*>(image); 72 return static_cast<SkImage_Base*>(image);
71 } 73 }
72 74
73 static inline const SkImage_Base* as_IB(const SkImage* image) { 75 static inline const SkImage_Base* as_IB(const SkImage* image) {
74 return static_cast<const SkImage_Base*>(image); 76 return static_cast<const SkImage_Base*>(image);
75 } 77 }
76 78
77 #endif 79 #endif
OLDNEW
« gm/factory.cpp ('K') | « src/image/SkImage.cpp ('k') | src/image/SkImage_Raster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698