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

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

Issue 137133003: Revert of add SkBitmap::installPixelRef() (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/image/SkImagePriv.cpp ('k') | src/image/SkImage_Raster.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 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
11 #include "SkImage.h" 11 #include "SkImage.h"
12 12
13 class SkImage_Base : public SkImage { 13 class SkImage_Base : public SkImage {
14 public: 14 public:
15 SkImage_Base(int width, int height) : INHERITED(width, height) {} 15 SkImage_Base(int width, int height) : INHERITED(width, height) {}
16 SkImage_Base(const SkImageInfo& info) : INHERITED(info.fWidth, info.fHeight) {}
17 16
18 virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) = 0; 17 virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) = 0;
19 virtual void onDrawRectToRect(SkCanvas*, const SkRect* src, 18 virtual void onDrawRectToRect(SkCanvas*, const SkRect* src,
20 const SkRect& dst, const SkPaint*) = 0; 19 const SkRect& dst, const SkPaint*) = 0;
21 virtual GrTexture* onGetTexture() { return NULL; } 20 virtual GrTexture* onGetTexture() { return NULL; }
22 21
23 // return a read-only copy of the pixels. We promise to not modify them, 22 // return a read-only copy of the pixels. We promise to not modify them,
24 // but only inspect them (or encode them). 23 // but only inspect them (or encode them).
25 virtual bool getROPixels(SkBitmap*) const { return false; } 24 virtual bool getROPixels(SkBitmap*) const { return false; }
26 25
27 private: 26 private:
28 typedef SkImage INHERITED; 27 typedef SkImage INHERITED;
29 }; 28 };
30 29
31 #endif 30 #endif
OLDNEW
« no previous file with comments | « src/image/SkImagePriv.cpp ('k') | src/image/SkImage_Raster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698