OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkGpuDevice_DEFINED | 8 #ifndef SkGpuDevice_DEFINED |
9 #define SkGpuDevice_DEFINED | 9 #define SkGpuDevice_DEFINED |
10 | 10 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 }; | 162 }; |
163 static bool CheckAlphaTypeAndGetFlags(const SkImageInfo* info, InitContents
init, | 163 static bool CheckAlphaTypeAndGetFlags(const SkImageInfo* info, InitContents
init, |
164 unsigned* flags); | 164 unsigned* flags); |
165 | 165 |
166 SkGpuDevice(GrRenderTarget*, int width, int height, const SkSurfaceProps*, u
nsigned flags); | 166 SkGpuDevice(GrRenderTarget*, int width, int height, const SkSurfaceProps*, u
nsigned flags); |
167 | 167 |
168 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; | 168 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; |
169 | 169 |
170 sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&) over
ride; | 170 sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&) over
ride; |
171 | 171 |
172 SkImageFilter::Cache* getImageFilterCache() override; | 172 SkImageFilterCache* getImageFilterCache() override; |
173 | 173 |
174 bool forceConservativeRasterClip() const override { return true; } | 174 bool forceConservativeRasterClip() const override { return true; } |
175 | 175 |
176 // sets the render target and clip on context | 176 // sets the render target and clip on context |
177 void prepareDraw(const SkDraw&); | 177 void prepareDraw(const SkDraw&); |
178 | 178 |
179 /** | 179 /** |
180 * Helper functions called by drawBitmapCommon. By the time these are called
the SkDraw's | 180 * Helper functions called by drawBitmapCommon. By the time these are called
the SkDraw's |
181 * matrix, clip, and the device's render target has already been set on GrCo
ntext. | 181 * matrix, clip, and the device's render target has already been set on GrCo
ntext. |
182 */ | 182 */ |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 251 |
252 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, | 252 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, |
253 const SkPaint&) override; | 253 const SkPaint&) override; |
254 | 254 |
255 friend class GrAtlasTextContext; | 255 friend class GrAtlasTextContext; |
256 friend class SkSurface_Gpu; // for access to surfaceProps | 256 friend class SkSurface_Gpu; // for access to surfaceProps |
257 typedef SkBaseDevice INHERITED; | 257 typedef SkBaseDevice INHERITED; |
258 }; | 258 }; |
259 | 259 |
260 #endif | 260 #endif |
OLD | NEW |