| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 return static_cast<SkGpuDevice*>(dev); | 71 return static_cast<SkGpuDevice*>(dev); |
| 72 } | 72 } |
| 73 | 73 |
| 74 GrContext* context() const override { return fContext; } | 74 GrContext* context() const override { return fContext; } |
| 75 | 75 |
| 76 // set all pixels to 0 | 76 // set all pixels to 0 |
| 77 void clearAll(); | 77 void clearAll(); |
| 78 | 78 |
| 79 void replaceDrawContext(bool shouldRetainContent); | 79 void replaceDrawContext(bool shouldRetainContent); |
| 80 | 80 |
| 81 GrRenderTarget* accessRenderTarget() override; | |
| 82 GrDrawContext* accessDrawContext() override; | 81 GrDrawContext* accessDrawContext() override; |
| 83 | 82 |
| 84 SkImageInfo imageInfo() const override { | 83 SkImageInfo imageInfo() const override { |
| 85 return fLegacyBitmap.info(); | 84 return fLegacyBitmap.info(); |
| 86 } | 85 } |
| 87 | 86 |
| 88 void drawPaint(const SkDraw&, const SkPaint& paint) override; | 87 void drawPaint(const SkDraw&, const SkPaint& paint) override; |
| 89 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, | 88 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, |
| 90 const SkPoint[], const SkPaint& paint) override; | 89 const SkPoint[], const SkPaint& paint) override; |
| 91 virtual void drawRect(const SkDraw&, const SkRect& r, | 90 virtual void drawRect(const SkDraw&, const SkRect& r, |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 271 |
| 273 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, | 272 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, |
| 274 const SkPaint&) override; | 273 const SkPaint&) override; |
| 275 | 274 |
| 276 friend class GrAtlasTextContext; | 275 friend class GrAtlasTextContext; |
| 277 friend class SkSurface_Gpu; // for access to surfaceProps | 276 friend class SkSurface_Gpu; // for access to surfaceProps |
| 278 typedef SkBaseDevice INHERITED; | 277 typedef SkBaseDevice INHERITED; |
| 279 }; | 278 }; |
| 280 | 279 |
| 281 #endif | 280 #endif |
| OLD | NEW |