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

Side by Side Diff: include/gpu/SkGpuDevice.h

Issue 58933007: Revert "switch GatherPixelRefs to use SkBaseDevice instead of SkBitmapDevice" (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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 | « include/core/SkDevice.h ('k') | src/core/SkBitmapDevice.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // overrides from SkBaseDevice 65 // overrides from SkBaseDevice
66 virtual uint32_t getDeviceCapabilities() SK_OVERRIDE { 66 virtual uint32_t getDeviceCapabilities() SK_OVERRIDE {
67 return 0; 67 return 0;
68 } 68 }
69 virtual int width() const SK_OVERRIDE { 69 virtual int width() const SK_OVERRIDE {
70 return NULL == fRenderTarget ? 0 : fRenderTarget->width(); 70 return NULL == fRenderTarget ? 0 : fRenderTarget->width();
71 } 71 }
72 virtual int height() const SK_OVERRIDE { 72 virtual int height() const SK_OVERRIDE {
73 return NULL == fRenderTarget ? 0 : fRenderTarget->height(); 73 return NULL == fRenderTarget ? 0 : fRenderTarget->height();
74 } 74 }
75 virtual void getGlobalBounds(SkIRect* bounds) const SK_OVERRIDE;
75 virtual bool isOpaque() const SK_OVERRIDE { 76 virtual bool isOpaque() const SK_OVERRIDE {
76 return NULL == fRenderTarget ? false 77 return NULL == fRenderTarget ? false
77 : kRGB_565_GrPixelConfig == fRenderTarget-> config(); 78 : kRGB_565_GrPixelConfig == fRenderTarget-> config();
78 } 79 }
79 virtual SkBitmap::Config config() const SK_OVERRIDE; 80 virtual SkBitmap::Config config() const SK_OVERRIDE;
80 81
81 virtual void clear(SkColor color) SK_OVERRIDE; 82 virtual void clear(SkColor color) SK_OVERRIDE;
82 virtual void writePixels(const SkBitmap& bitmap, int x, int y, 83 virtual void writePixels(const SkBitmap& bitmap, int x, int y,
83 SkCanvas::Config8888 config8888) SK_OVERRIDE; 84 SkCanvas::Config8888 config8888) SK_OVERRIDE;
84 85
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 209
209 /** 210 /**
210 * Returns non-initialized instance. 211 * Returns non-initialized instance.
211 */ 212 */
212 GrTextContext* getTextContext(); 213 GrTextContext* getTextContext();
213 214
214 typedef SkBitmapDevice INHERITED; 215 typedef SkBitmapDevice INHERITED;
215 }; 216 };
216 217
217 #endif 218 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698