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

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

Issue 1555953004: Create debug only SkSingleOwner (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks 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 | « include/gpu/GrContext.h ('k') | include/private/GrSingleOwner.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
11 #include "GrColor.h" 11 #include "GrColor.h"
12 #include "GrRenderTarget.h" 12 #include "GrRenderTarget.h"
13 #include "SkRefCnt.h" 13 #include "SkRefCnt.h"
14 #include "SkSurfaceProps.h" 14 #include "SkSurfaceProps.h"
15 #include "../private/GrSingleOwner.h"
15 16
16 class GrClip; 17 class GrClip;
17 class GrContext; 18 class GrContext;
18 class GrDrawBatch; 19 class GrDrawBatch;
19 class GrDrawPathBatchBase; 20 class GrDrawPathBatchBase;
20 class GrDrawingManager; 21 class GrDrawingManager;
21 class GrDrawTarget; 22 class GrDrawTarget;
22 class GrPaint; 23 class GrPaint;
23 class GrPathProcessor; 24 class GrPathProcessor;
24 class GrPipelineBuilder; 25 class GrPipelineBuilder;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 300
300 GrDrawingManager* fDrawingManager; 301 GrDrawingManager* fDrawingManager;
301 GrRenderTarget* fRenderTarget; 302 GrRenderTarget* fRenderTarget;
302 303
303 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked 304 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked
304 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'. 305 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'.
305 GrDrawTarget* fDrawTarget; 306 GrDrawTarget* fDrawTarget;
306 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana ger 307 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana ger
307 308
308 SkSurfaceProps fSurfaceProps; 309 SkSurfaceProps fSurfaceProps;
310
311 // In debug builds we guard against improper thread handling
312 SkDEBUGCODE(mutable GrSingleOwner fSingleOwner;)
309 }; 313 };
310 314
311 #endif 315 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | include/private/GrSingleOwner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698