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

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

Issue 68203018: Revert "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;
76 virtual bool isOpaque() const SK_OVERRIDE { 75 virtual bool isOpaque() const SK_OVERRIDE {
77 return NULL == fRenderTarget ? false 76 return NULL == fRenderTarget ? false
78 : kRGB_565_GrPixelConfig == fRenderTarget-> config(); 77 : kRGB_565_GrPixelConfig == fRenderTarget-> config();
79 } 78 }
80 virtual SkBitmap::Config config() const SK_OVERRIDE; 79 virtual SkBitmap::Config config() const SK_OVERRIDE;
81 80
82 virtual void clear(SkColor color) SK_OVERRIDE; 81 virtual void clear(SkColor color) SK_OVERRIDE;
83 virtual void writePixels(const SkBitmap& bitmap, int x, int y, 82 virtual void writePixels(const SkBitmap& bitmap, int x, int y,
84 SkCanvas::Config8888 config8888) SK_OVERRIDE; 83 SkCanvas::Config8888 config8888) SK_OVERRIDE;
85 84
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 208
210 /** 209 /**
211 * Returns non-initialized instance. 210 * Returns non-initialized instance.
212 */ 211 */
213 GrTextContext* getTextContext(); 212 GrTextContext* getTextContext();
214 213
215 typedef SkBitmapDevice INHERITED; 214 typedef SkBitmapDevice INHERITED;
216 }; 215 };
217 216
218 #endif 217 #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