Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/gpu/SkGpuDevice.h

Issue 1919063002: Image filters: de-nest SkImageFilter::Cache and Cache::Key. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix copyright Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrLayerHoister.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrLayerHoister.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698