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

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

Issue 2324473002: Move prepareForExternalIO implementation from GrContext to 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 | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawingManager.cpp » ('j') | 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawingManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698