| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |