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