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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const
SkPaint&) override; | 118 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const
SkPaint&) override; |
119 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S
kRect& dst, | 119 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S
kRect& dst, |
120 const SkPaint&) override; | 120 const SkPaint&) override; |
121 | 121 |
122 void flush() override; | 122 void flush() override; |
123 | 123 |
124 void onAttachToCanvas(SkCanvas* canvas) override; | 124 void onAttachToCanvas(SkCanvas* canvas) override; |
125 void onDetachFromCanvas() override; | 125 void onDetachFromCanvas() override; |
126 | 126 |
127 const SkBitmap& onAccessBitmap() override; | 127 const SkBitmap& onAccessBitmap() override; |
| 128 bool onAccessPixels(SkPixmap*) override; |
128 | 129 |
129 bool canHandleImageFilter(const SkImageFilter*) override; | 130 bool canHandleImageFilter(const SkImageFilter*) override; |
130 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, | 131 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, |
131 const SkImageFilter::Context&, | 132 const SkImageFilter::Context&, |
132 SkBitmap*, SkIPoint*) override; | 133 SkBitmap*, SkIPoint*) override; |
133 | 134 |
134 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkIm
ageFilter*, | 135 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkIm
ageFilter*, |
135 const SkImageFilter::Context&, | 136 const SkImageFilter::Context&, |
136 SkBitmap* result, SkIPoint* offset); | 137 SkBitmap* result, SkIPoint* offset); |
137 | 138 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 217 |
217 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 218 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
218 int sampleCount); | 219 int sampleCount); |
219 | 220 |
220 friend class GrAtlasTextContext; | 221 friend class GrAtlasTextContext; |
221 friend class GrTextContext; | 222 friend class GrTextContext; |
222 typedef SkBaseDevice INHERITED; | 223 typedef SkBaseDevice INHERITED; |
223 }; | 224 }; |
224 | 225 |
225 #endif | 226 #endif |
OLD | NEW |