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

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

Issue 1658823002: Remove deferred clear from SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix ptr->bool warning on windows Created 4 years, 10 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/GrTest.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 /* 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // We want these unreffed in DrawContext, RenderTarget, GrContext order. 157 // We want these unreffed in DrawContext, RenderTarget, GrContext order.
158 SkAutoTUnref<GrContext> fContext; 158 SkAutoTUnref<GrContext> fContext;
159 SkAutoTUnref<GrRenderTarget> fRenderTarget; 159 SkAutoTUnref<GrRenderTarget> fRenderTarget;
160 SkAutoTUnref<GrDrawContext> fDrawContext; 160 SkAutoTUnref<GrDrawContext> fDrawContext;
161 161
162 SkAutoTUnref<const SkClipStack> fClipStack; 162 SkAutoTUnref<const SkClipStack> fClipStack;
163 SkIPoint fClipOrigin; 163 SkIPoint fClipOrigin;
164 GrClip fClip;; 164 GrClip fClip;;
165 // remove when our clients don't rely on accessBitmap() 165 // remove when our clients don't rely on accessBitmap()
166 SkBitmap fLegacyBitmap; 166 SkBitmap fLegacyBitmap;
167 bool fNeedClear;
168 bool fOpaque; 167 bool fOpaque;
169 168
170 enum Flags { 169 enum Flags {
171 kNeedClear_Flag = 1 << 0, //!< Surface requires an initial clear 170 kNeedClear_Flag = 1 << 0, //!< Surface requires an initial clear
172 kIsOpaque_Flag = 1 << 1, //!< Hint from client that rendering to this device will be 171 kIsOpaque_Flag = 1 << 1, //!< Hint from client that rendering to this device will be
173 // opaque even if the config supports alpha . 172 // opaque even if the config supports alpha .
174 }; 173 };
175 static bool CheckAlphaTypeAndGetFlags(const SkImageInfo* info, InitContents init, 174 static bool CheckAlphaTypeAndGetFlags(const SkImageInfo* info, InitContents init,
176 unsigned* flags); 175 unsigned* flags);
177 176
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 256
258 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 257 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
259 int sampleCount); 258 int sampleCount);
260 259
261 friend class GrAtlasTextContext; 260 friend class GrAtlasTextContext;
262 friend class SkSurface_Gpu; // for access to surfaceProps 261 friend class SkSurface_Gpu; // for access to surfaceProps
263 typedef SkBaseDevice INHERITED; 262 typedef SkBaseDevice INHERITED;
264 }; 263 };
265 264
266 #endif 265 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698