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

Unified Diff: include/gpu/SkGpuDevice.h

Issue 23641008: Baby step in making SkGpuDevice no longer derive from SkBitmapDevice (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: cleaned up Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkDevice.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/SkGpuDevice.h
===================================================================
--- include/gpu/SkGpuDevice.h (revision 11179)
+++ include/gpu/SkGpuDevice.h (working copy)
@@ -63,6 +63,21 @@
virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE;
// overrides from SkBaseDevice
+ virtual uint32_t getDeviceCapabilities() SK_OVERRIDE {
+ return 0;
+ }
+ virtual int width() const SK_OVERRIDE {
+ return NULL == fRenderTarget ? 0 : fRenderTarget->width();
+ }
+ virtual int height() const SK_OVERRIDE {
+ return NULL == fRenderTarget ? 0 : fRenderTarget->height();
+ }
+ virtual void getGlobalBounds(SkIRect* bounds) const SK_OVERRIDE;
+ virtual bool isOpaque() const SK_OVERRIDE {
+ return NULL == fRenderTarget ? false
+ : kRGB_565_GrPixelConfig == fRenderTarget->config();
+ }
+ virtual SkBitmap::Config config() const SK_OVERRIDE;
virtual void clear(SkColor color) SK_OVERRIDE;
virtual void writePixels(const SkBitmap& bitmap, int x, int y,
« no previous file with comments | « include/core/SkDevice.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698