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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 const SkImageFilter::Context&, | 131 const SkImageFilter::Context&, |
132 SkBitmap*, SkIPoint*) override; | 132 SkBitmap*, SkIPoint*) override; |
133 | 133 |
134 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkIm
ageFilter*, | 134 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkIm
ageFilter*, |
135 const SkImageFilter::Context&, | 135 const SkImageFilter::Context&, |
136 SkBitmap* result, SkIPoint* offset); | 136 SkBitmap* result, SkIPoint* offset); |
137 | 137 |
138 protected: | 138 protected: |
139 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) override; | 139 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) override; |
140 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) overri
de; | 140 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) overri
de; |
141 bool onShouldDisableLCD(const SkPaint&) const override; | 141 bool onShouldDisableLCD(const SkPaint&) const final; |
142 | 142 |
143 /** PRIVATE / EXPERIMENTAL -- do not call */ | 143 /** PRIVATE / EXPERIMENTAL -- do not call */ |
144 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture, | 144 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture, |
145 const SkMatrix*, const SkPaint*) overr
ide; | 145 const SkMatrix*, const SkPaint*) overr
ide; |
146 | 146 |
147 private: | 147 private: |
148 GrContext* fContext; | 148 GrContext* fContext; |
149 GrSkDrawProcs* fDrawProcs; | 149 GrSkDrawProcs* fDrawProcs; |
150 SkAutoTUnref<const SkClipStack> fClipStack; | 150 SkAutoTUnref<const SkClipStack> fClipStack; |
151 SkIPoint fClipOrigin; | 151 SkIPoint fClipOrigin; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 216 |
217 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 217 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
218 int sampleCount); | 218 int sampleCount); |
219 | 219 |
220 friend class GrAtlasTextContext; | 220 friend class GrAtlasTextContext; |
221 friend class GrTextContext; | 221 friend class GrTextContext; |
222 typedef SkBaseDevice INHERITED; | 222 typedef SkBaseDevice INHERITED; |
223 }; | 223 }; |
224 | 224 |
225 #endif | 225 #endif |
OLD | NEW |