| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 bool isImmediateMode, GrSingleOwner* singleOwner) | 67 bool isImmediateMode, GrSingleOwner* singleOwner) |
| 68 : fContext(context) | 68 : fContext(context) |
| 69 , fOptionsForDrawTargets(optionsForDrawTargets) | 69 , fOptionsForDrawTargets(optionsForDrawTargets) |
| 70 , fSingleOwner(singleOwner) | 70 , fSingleOwner(singleOwner) |
| 71 , fAbandoned(false) | 71 , fAbandoned(false) |
| 72 , fAtlasTextContext(nullptr) | 72 , fAtlasTextContext(nullptr) |
| 73 , fPathRendererChain(nullptr) | 73 , fPathRendererChain(nullptr) |
| 74 , fSoftwarePathRenderer(nullptr) | 74 , fSoftwarePathRenderer(nullptr) |
| 75 , fFlushState(context->getGpu(), context->resourceProvider()) | 75 , fFlushState(context->getGpu(), context->resourceProvider()) |
| 76 , fFlushing(false) | 76 , fFlushing(false) |
| 77 , fLastFlushType(GrResourceCache::FlushType::kExternal) |
| 77 , fIsImmediateMode(isImmediateMode) { | 78 , fIsImmediateMode(isImmediateMode) { |
| 78 } | 79 } |
| 79 | 80 |
| 80 void abandon(); | 81 void abandon(); |
| 81 void cleanup(); | 82 void cleanup(); |
| 82 void reset(); | 83 void reset(); |
| 83 void flush() { this->internalFlush(GrResourceCache::FlushType::kExternal); } | 84 void flush() { this->internalFlush(GrResourceCache::FlushType::kExternal); } |
| 84 void internalFlush(GrResourceCache::FlushType); | 85 void internalFlush(GrResourceCache::FlushType); |
| 85 | 86 |
| 86 friend class GrContext; // for access to: ctor, abandon, reset & flush | 87 friend class GrContext; // for access to: ctor, abandon, reset & flush |
| (...skipping 10 matching lines...) Expand all Loading... |
| 97 bool fAbandoned; | 98 bool fAbandoned; |
| 98 SkTDArray<GrDrawTarget*> fDrawTargets; | 99 SkTDArray<GrDrawTarget*> fDrawTargets; |
| 99 | 100 |
| 100 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; | 101 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; |
| 101 | 102 |
| 102 GrPathRendererChain* fPathRendererChain; | 103 GrPathRendererChain* fPathRendererChain; |
| 103 GrSoftwarePathRenderer* fSoftwarePathRenderer; | 104 GrSoftwarePathRenderer* fSoftwarePathRenderer; |
| 104 | 105 |
| 105 GrBatchFlushState fFlushState; | 106 GrBatchFlushState fFlushState; |
| 106 bool fFlushing; | 107 bool fFlushing; |
| 108 GrResourceCache::FlushType fLastFlushType; |
| 107 | 109 |
| 108 bool fIsImmediateMode; | 110 bool fIsImmediateMode; |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 #endif | 113 #endif |
| OLD | NEW |