OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 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 SkBitmapDevice_DEFINED | 9 #ifndef SkBitmapDevice_DEFINED |
10 #define SkBitmapDevice_DEFINED | 10 #define SkBitmapDevice_DEFINED |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 const SkScalar pos[], SkScalar constY, | 97 const SkScalar pos[], SkScalar constY, |
98 int scalarsPerPos, const SkPaint& paint) SK_OVERRID
E; | 98 int scalarsPerPos, const SkPaint& paint) SK_OVERRID
E; |
99 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, | 99 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, |
100 const SkPath& path, const SkMatrix* matrix, | 100 const SkPath& path, const SkMatrix* matrix, |
101 const SkPaint& paint) SK_OVERRIDE; | 101 const SkPaint& paint) SK_OVERRIDE; |
102 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, | 102 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, |
103 const SkPoint verts[], const SkPoint texs[], | 103 const SkPoint verts[], const SkPoint texs[], |
104 const SkColor colors[], SkXfermode* xmode, | 104 const SkColor colors[], SkXfermode* xmode, |
105 const uint16_t indices[], int indexCount, | 105 const uint16_t indices[], int indexCount, |
106 const SkPaint& paint) SK_OVERRIDE; | 106 const SkPaint& paint) SK_OVERRIDE; |
| 107 virtual void drawPatch(const SkDraw&, const SkPatch& patch, const SkPaint& p
aint) SK_OVERRIDE; |
107 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a
call to | 108 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a
call to |
108 onCreateDevice on this device with kSaveLayer_Usage. | 109 onCreateDevice on this device with kSaveLayer_Usage. |
109 */ | 110 */ |
110 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 111 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
111 const SkPaint&) SK_OVERRIDE; | 112 const SkPaint&) SK_OVERRIDE; |
112 | 113 |
113 /////////////////////////////////////////////////////////////////////////// | 114 /////////////////////////////////////////////////////////////////////////// |
114 | 115 |
115 /** Update as needed the pixel value in the bitmap, so that the caller can | 116 /** Update as needed the pixel value in the bitmap, so that the caller can |
116 access the pixels directly. Note: only the pixels field should be | 117 access the pixels directly. Note: only the pixels field should be |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 156 |
156 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; | 157 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; |
157 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; | 158 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; |
158 | 159 |
159 SkBitmap fBitmap; | 160 SkBitmap fBitmap; |
160 | 161 |
161 typedef SkBaseDevice INHERITED; | 162 typedef SkBaseDevice INHERITED; |
162 }; | 163 }; |
163 | 164 |
164 #endif // SkBitmapDevice_DEFINED | 165 #endif // SkBitmapDevice_DEFINED |
OLD | NEW |