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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void flushIfNecessary() { | 53 void flushIfNecessary() { |
54 if (fContext->getResourceCache()->requestsFlush()) { | 54 if (fContext->getResourceCache()->requestsFlush()) { |
55 this->internalFlush(GrResourceCache::kCacheRequested); | 55 this->internalFlush(GrResourceCache::kCacheRequested); |
56 } else if (fIsImmediateMode) { | 56 } else if (fIsImmediateMode) { |
57 this->internalFlush(GrResourceCache::kImmediateMode); | 57 this->internalFlush(GrResourceCache::kImmediateMode); |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 static bool ProgramUnitTest(GrContext* context, int maxStages); | 61 static bool ProgramUnitTest(GrContext* context, int maxStages); |
62 | 62 |
| 63 void prepareSurfaceForExternalIO(GrSurface*); |
| 64 |
63 private: | 65 private: |
64 GrDrawingManager(GrContext* context, const GrDrawTarget::Options& optionsFor
DrawTargets, | 66 GrDrawingManager(GrContext* context, const GrDrawTarget::Options& optionsFor
DrawTargets, |
65 bool isImmediateMode, GrSingleOwner* singleOwner) | 67 bool isImmediateMode, GrSingleOwner* singleOwner) |
66 : fContext(context) | 68 : fContext(context) |
67 , fOptionsForDrawTargets(optionsForDrawTargets) | 69 , fOptionsForDrawTargets(optionsForDrawTargets) |
68 , fSingleOwner(singleOwner) | 70 , fSingleOwner(singleOwner) |
69 , fAbandoned(false) | 71 , fAbandoned(false) |
70 , fAtlasTextContext(nullptr) | 72 , fAtlasTextContext(nullptr) |
71 , fPathRendererChain(nullptr) | 73 , fPathRendererChain(nullptr) |
72 , fSoftwarePathRenderer(nullptr) | 74 , fSoftwarePathRenderer(nullptr) |
(...skipping 27 matching lines...) Expand all Loading... |
100 GrPathRendererChain* fPathRendererChain; | 102 GrPathRendererChain* fPathRendererChain; |
101 GrSoftwarePathRenderer* fSoftwarePathRenderer; | 103 GrSoftwarePathRenderer* fSoftwarePathRenderer; |
102 | 104 |
103 GrBatchFlushState fFlushState; | 105 GrBatchFlushState fFlushState; |
104 bool fFlushing; | 106 bool fFlushing; |
105 | 107 |
106 bool fIsImmediateMode; | 108 bool fIsImmediateMode; |
107 }; | 109 }; |
108 | 110 |
109 #endif | 111 #endif |
OLD | NEW |