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

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

Issue 2312333002: fix uninit immediate mode member var in GrDrawingManager (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | 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 GrDrawingManager_DEFINED 8 #ifndef GrDrawingManager_DEFINED
9 #define GrDrawingManager_DEFINED 9 #define GrDrawingManager_DEFINED
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 GrDrawingManager(GrContext* context, const GrDrawTarget::Options& optionsFor DrawTargets, 64 GrDrawingManager(GrContext* context, const GrDrawTarget::Options& optionsFor DrawTargets,
65 bool isImmediateMode, GrSingleOwner* singleOwner) 65 bool isImmediateMode, GrSingleOwner* singleOwner)
66 : fContext(context) 66 : fContext(context)
67 , fOptionsForDrawTargets(optionsForDrawTargets) 67 , fOptionsForDrawTargets(optionsForDrawTargets)
68 , fSingleOwner(singleOwner) 68 , fSingleOwner(singleOwner)
69 , fAbandoned(false) 69 , fAbandoned(false)
70 , fAtlasTextContext(nullptr) 70 , fAtlasTextContext(nullptr)
71 , fPathRendererChain(nullptr) 71 , fPathRendererChain(nullptr)
72 , fSoftwarePathRenderer(nullptr) 72 , fSoftwarePathRenderer(nullptr)
73 , fFlushState(context->getGpu(), context->resourceProvider()) 73 , fFlushState(context->getGpu(), context->resourceProvider())
74 , fFlushing(false) { 74 , fFlushing(false)
75 , fIsImmediateMode(isImmediateMode) {
75 } 76 }
76 77
77 void abandon(); 78 void abandon();
78 void cleanup(); 79 void cleanup();
79 void reset(); 80 void reset();
80 void flush() { this->internalFlush(GrResourceCache::FlushType::kExternal); } 81 void flush() { this->internalFlush(GrResourceCache::FlushType::kExternal); }
81 void internalFlush(GrResourceCache::FlushType); 82 void internalFlush(GrResourceCache::FlushType);
82 83
83 friend class GrContext; // for access to: ctor, abandon, reset & flush 84 friend class GrContext; // for access to: ctor, abandon, reset & flush
84 85
(...skipping 14 matching lines...) Expand all
99 GrPathRendererChain* fPathRendererChain; 100 GrPathRendererChain* fPathRendererChain;
100 GrSoftwarePathRenderer* fSoftwarePathRenderer; 101 GrSoftwarePathRenderer* fSoftwarePathRenderer;
101 102
102 GrBatchFlushState fFlushState; 103 GrBatchFlushState fFlushState;
103 bool fFlushing; 104 bool fFlushing;
104 105
105 bool fIsImmediateMode; 106 bool fIsImmediateMode;
106 }; 107 };
107 108
108 #endif 109 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698