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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 */ | 67 */ |
68 SkGpuDevice(GrContext*, GrTexture*); | 68 SkGpuDevice(GrContext*, GrTexture*); |
69 | 69 |
70 virtual ~SkGpuDevice(); | 70 virtual ~SkGpuDevice(); |
71 | 71 |
72 GrContext* context() const { return fContext; } | 72 GrContext* context() const { return fContext; } |
73 | 73 |
74 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE; | 74 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE; |
75 | 75 |
76 // overrides from SkBaseDevice | 76 // overrides from SkBaseDevice |
77 virtual uint32_t getDeviceCapabilities() SK_OVERRIDE { | |
78 return 0; | |
79 } | |
80 virtual int width() const SK_OVERRIDE { | 77 virtual int width() const SK_OVERRIDE { |
81 return NULL == fRenderTarget ? 0 : fRenderTarget->width(); | 78 return NULL == fRenderTarget ? 0 : fRenderTarget->width(); |
82 } | 79 } |
83 virtual int height() const SK_OVERRIDE { | 80 virtual int height() const SK_OVERRIDE { |
84 return NULL == fRenderTarget ? 0 : fRenderTarget->height(); | 81 return NULL == fRenderTarget ? 0 : fRenderTarget->height(); |
85 } | 82 } |
86 virtual bool isOpaque() const SK_OVERRIDE { | 83 virtual bool isOpaque() const SK_OVERRIDE { |
87 return NULL == fRenderTarget ? false | 84 return NULL == fRenderTarget ? false |
88 : kRGB_565_GrPixelConfig == fRenderTarget->
config(); | 85 : kRGB_565_GrPixelConfig == fRenderTarget->
config(); |
89 } | 86 } |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 const GrTextureParams& params, | 211 const GrTextureParams& params, |
215 const SkPaint& paint, | 212 const SkPaint& paint, |
216 SkCanvas::DrawBitmapRectFlags flags, | 213 SkCanvas::DrawBitmapRectFlags flags, |
217 int tileSize, | 214 int tileSize, |
218 bool bicubic); | 215 bool bicubic); |
219 | 216 |
220 typedef SkBitmapDevice INHERITED; | 217 typedef SkBitmapDevice INHERITED; |
221 }; | 218 }; |
222 | 219 |
223 #endif | 220 #endif |
OLD | NEW |