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

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

Issue 2321563006: Make GrResourceCache dynamically change between LRU and random replacement strategies. (Closed)
Patch Set: rebase 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 | « no previous file | src/gpu/GrDrawingManager.cpp » ('j') | src/gpu/GrDrawingManager.cpp » ('J')
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawingManager.cpp » ('j') | src/gpu/GrDrawingManager.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698