| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkGpuDevice_DEFINED | 8 #ifndef SkGpuDevice_DEFINED |
| 9 #define SkGpuDevice_DEFINED | 9 #define SkGpuDevice_DEFINED |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 GrContext* context() const override { return fContext; } | 66 GrContext* context() const override { return fContext; } |
| 67 | 67 |
| 68 // set all pixels to 0 | 68 // set all pixels to 0 |
| 69 void clearAll(); | 69 void clearAll(); |
| 70 | 70 |
| 71 void replaceRenderTarget(bool shouldRetainContent); | 71 void replaceRenderTarget(bool shouldRetainContent); |
| 72 | 72 |
| 73 GrRenderTarget* accessRenderTarget() override; | 73 GrRenderTarget* accessRenderTarget() override; |
| 74 GrDrawContext* accessDrawContext() override; |
| 74 | 75 |
| 75 SkImageInfo imageInfo() const override { | 76 SkImageInfo imageInfo() const override { |
| 76 return fLegacyBitmap.info(); | 77 return fLegacyBitmap.info(); |
| 77 } | 78 } |
| 78 | 79 |
| 79 void drawPaint(const SkDraw&, const SkPaint& paint) override; | 80 void drawPaint(const SkDraw&, const SkPaint& paint) override; |
| 80 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, | 81 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, |
| 81 const SkPoint[], const SkPaint& paint) override; | 82 const SkPoint[], const SkPaint& paint) override; |
| 82 virtual void drawRect(const SkDraw&, const SkRect& r, | 83 virtual void drawRect(const SkDraw&, const SkRect& r, |
| 83 const SkPaint& paint) override; | 84 const SkPaint& paint) override; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 252 |
| 252 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, | 253 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, |
| 253 const SkPaint&) override; | 254 const SkPaint&) override; |
| 254 | 255 |
| 255 friend class GrAtlasTextContext; | 256 friend class GrAtlasTextContext; |
| 256 friend class SkSurface_Gpu; // for access to surfaceProps | 257 friend class SkSurface_Gpu; // for access to surfaceProps |
| 257 typedef SkBaseDevice INHERITED; | 258 typedef SkBaseDevice INHERITED; |
| 258 }; | 259 }; |
| 259 | 260 |
| 260 #endif | 261 #endif |
| OLD | NEW |