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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const SkPaint&) SK_OVERRIDE; | 119 const SkPaint&) SK_OVERRIDE; |
120 | 120 |
121 void flush() SK_OVERRIDE; | 121 void flush() SK_OVERRIDE; |
122 | 122 |
123 void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; | 123 void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; |
124 void onDetachFromCanvas() SK_OVERRIDE; | 124 void onDetachFromCanvas() SK_OVERRIDE; |
125 | 125 |
126 const SkBitmap& onAccessBitmap() SK_OVERRIDE; | 126 const SkBitmap& onAccessBitmap() SK_OVERRIDE; |
127 | 127 |
128 bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; | 128 bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; |
129 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, | 129 virtual bool filterImage(const SkImageFilter*, const SkImage*, |
130 const SkImageFilter::Context&, | 130 const SkImageFilter::Context&, |
131 SkBitmap*, SkIPoint*) SK_OVERRIDE; | 131 SkAutoTUnref<const SkImage>&, SkIPoint*) SK_OVERRID
E; |
132 | 132 |
133 bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*, | 133 bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*, |
134 const SkImageFilter::Context&, | 134 const SkImageFilter::Context&, |
135 SkBitmap* result, SkIPoint* offset); | 135 SkAutoTUnref<const SkImage>& result, SkIPoint* offset); |
136 | 136 |
137 protected: | 137 protected: |
138 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OVERRIDE; | 138 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OVERRIDE; |
139 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) SK_OVE
RRIDE; | 139 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) SK_OVE
RRIDE; |
140 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; | 140 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; |
141 | 141 |
142 /** PRIVATE / EXPERIMENTAL -- do not call */ | 142 /** PRIVATE / EXPERIMENTAL -- do not call */ |
143 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture, | 143 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture, |
144 const SkMatrix*, const SkPaint*) SK_OV
ERRIDE; | 144 const SkMatrix*, const SkPaint*) SK_OV
ERRIDE; |
145 | 145 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 238 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
239 | 239 |
240 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 240 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
241 int sampleCount); | 241 int sampleCount); |
242 | 242 |
243 friend class GrTextContext; | 243 friend class GrTextContext; |
244 typedef SkBaseDevice INHERITED; | 244 typedef SkBaseDevice INHERITED; |
245 }; | 245 }; |
246 | 246 |
247 #endif | 247 #endif |
OLD | NEW |