OLD | NEW |
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 Loading... |
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) { | |
76 } | 75 } |
77 | 76 |
78 void abandon(); | 77 void abandon(); |
79 void cleanup(); | 78 void cleanup(); |
80 void reset(); | 79 void reset(); |
81 void flush() { this->internalFlush(GrResourceCache::FlushType::kExternal); } | 80 void flush() { this->internalFlush(GrResourceCache::FlushType::kExternal); } |
82 void internalFlush(GrResourceCache::FlushType); | 81 void internalFlush(GrResourceCache::FlushType); |
83 | 82 |
84 friend class GrContext; // for access to: ctor, abandon, reset & flush | 83 friend class GrContext; // for access to: ctor, abandon, reset & flush |
85 | 84 |
(...skipping 14 matching lines...) Expand all Loading... |
100 GrPathRendererChain* fPathRendererChain; | 99 GrPathRendererChain* fPathRendererChain; |
101 GrSoftwarePathRenderer* fSoftwarePathRenderer; | 100 GrSoftwarePathRenderer* fSoftwarePathRenderer; |
102 | 101 |
103 GrBatchFlushState fFlushState; | 102 GrBatchFlushState fFlushState; |
104 bool fFlushing; | 103 bool fFlushing; |
105 | 104 |
106 bool fIsImmediateMode; | 105 bool fIsImmediateMode; |
107 }; | 106 }; |
108 | 107 |
109 #endif | 108 #endif |
OLD | NEW |