| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 * The GrTexture's asRenderTarget() must be non-NULL or device will not | 53 * The GrTexture's asRenderTarget() must be non-NULL or device will not |
| 54 * function. | 54 * function. |
| 55 * DEPRECATED: Use Create(surface) | 55 * DEPRECATED: Use Create(surface) |
| 56 */ | 56 */ |
| 57 SkGpuDevice(GrContext*, GrTexture*); | 57 SkGpuDevice(GrContext*, GrTexture*); |
| 58 | 58 |
| 59 virtual ~SkGpuDevice(); | 59 virtual ~SkGpuDevice(); |
| 60 | 60 |
| 61 GrContext* context() const { return fContext; } | 61 GrContext* context() const { return fContext; } |
| 62 | 62 |
| 63 virtual SkGpuRenderTarget* accessRenderTarget() SK_OVERRIDE; | 63 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE; |
| 64 | 64 |
| 65 // overrides from SkDevice | 65 // overrides from SkDevice |
| 66 | 66 |
| 67 virtual void clear(SkColor color) SK_OVERRIDE; | 67 virtual void clear(SkColor color) SK_OVERRIDE; |
| 68 virtual void writePixels(const SkBitmap& bitmap, int x, int y, | 68 virtual void writePixels(const SkBitmap& bitmap, int x, int y, |
| 69 SkCanvas::Config8888 config8888) SK_OVERRIDE; | 69 SkCanvas::Config8888 config8888) SK_OVERRIDE; |
| 70 | 70 |
| 71 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; | 71 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; |
| 72 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, | 72 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, |
| 73 const SkPoint[], const SkPaint& paint) SK_OVERRIDE; | 73 const SkPoint[], const SkPaint& paint) SK_OVERRIDE; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 /** | 188 /** |
| 189 * Returns non-initialized instance. | 189 * Returns non-initialized instance. |
| 190 */ | 190 */ |
| 191 GrTextContext* getTextContext(); | 191 GrTextContext* getTextContext(); |
| 192 | 192 |
| 193 typedef SkDevice INHERITED; | 193 typedef SkDevice INHERITED; |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 #endif | 196 #endif |
| OLD | NEW |