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

Side by Side Diff: include/gpu/GrDrawContext.h

Issue 1567983002: Add guards to GrTextureProvider (Closed) Base URL: https://skia.googlesource.com/skia.git@gpudeviceguards
Patch Set: got it Created 4 years, 11 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 | « no previous file | include/gpu/GrTextureProvider.h » ('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 2015 Google Inc. 2 * Copyright 2015 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 GrDrawContext_DEFINED 8 #ifndef GrDrawContext_DEFINED
9 #define GrDrawContext_DEFINED 9 #define GrDrawContext_DEFINED
10 10
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 GrRenderTarget* fRenderTarget; 303 GrRenderTarget* fRenderTarget;
304 304
305 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked 305 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked
306 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'. 306 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'.
307 GrDrawTarget* fDrawTarget; 307 GrDrawTarget* fDrawTarget;
308 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana ger 308 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana ger
309 309
310 SkSurfaceProps fSurfaceProps; 310 SkSurfaceProps fSurfaceProps;
311 311
312 // In debug builds we guard against improper thread handling 312 // In debug builds we guard against improper thread handling
313 mutable GrSingleOwner* fSingleOwner; 313 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
314 }; 314 };
315 315
316 #endif 316 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrTextureProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698