| 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 #ifndef SkGpuDevice_DEFINED | 9 #ifndef SkGpuDevice_DEFINED |
| 10 #define SkGpuDevice_DEFINED | 10 #define SkGpuDevice_DEFINED |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 const SkRRect& inner, const SkPaint& paint) override
; | 88 const SkRRect& inner, const SkPaint& paint) override
; |
| 89 virtual void drawOval(const SkDraw&, const SkRect& oval, | 89 virtual void drawOval(const SkDraw&, const SkRect& oval, |
| 90 const SkPaint& paint) override; | 90 const SkPaint& paint) override; |
| 91 virtual void drawPath(const SkDraw&, const SkPath& path, | 91 virtual void drawPath(const SkDraw&, const SkPath& path, |
| 92 const SkPaint& paint, const SkMatrix* prePathMatrix, | 92 const SkPaint& paint, const SkMatrix* prePathMatrix, |
| 93 bool pathIsMutable) override; | 93 bool pathIsMutable) override; |
| 94 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, | 94 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, |
| 95 const SkMatrix&, const SkPaint&) override; | 95 const SkMatrix&, const SkPaint&) override; |
| 96 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, | 96 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, |
| 97 const SkRect* srcOrNull, const SkRect& dst, | 97 const SkRect* srcOrNull, const SkRect& dst, |
| 98 const SkPaint& paint, | 98 const SkPaint& paint, SkCanvas::SrcRectConstrain
t) override; |
| 99 SK_VIRTUAL_CONSTRAINT_TYPE) override; | |
| 100 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, | 99 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, |
| 101 int x, int y, const SkPaint& paint) override; | 100 int x, int y, const SkPaint& paint) override; |
| 102 virtual void drawText(const SkDraw&, const void* text, size_t len, | 101 virtual void drawText(const SkDraw&, const void* text, size_t len, |
| 103 SkScalar x, SkScalar y, const SkPaint&) override; | 102 SkScalar x, SkScalar y, const SkPaint&) override; |
| 104 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 103 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
| 105 const SkScalar pos[], int scalarsPerPos, | 104 const SkScalar pos[], int scalarsPerPos, |
| 106 const SkPoint& offset, const SkPaint&) override; | 105 const SkPoint& offset, const SkPaint&) override; |
| 107 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, | 106 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, |
| 108 const SkPaint& paint, SkDrawFilter* drawFilter) ov
erride; | 107 const SkPaint& paint, SkDrawFilter* drawFilter) ov
erride; |
| 109 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, | 108 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 223 |
| 225 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 224 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
| 226 int sampleCount); | 225 int sampleCount); |
| 227 | 226 |
| 228 friend class GrAtlasTextContext; | 227 friend class GrAtlasTextContext; |
| 229 friend class SkSurface_Gpu; // for access to surfaceProps | 228 friend class SkSurface_Gpu; // for access to surfaceProps |
| 230 typedef SkBaseDevice INHERITED; | 229 typedef SkBaseDevice INHERITED; |
| 231 }; | 230 }; |
| 232 | 231 |
| 233 #endif | 232 #endif |
| OLD | NEW |