| 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) { | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|