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

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

Issue 2386993004: Revert of Make GrResourceCache dynamically change between LRU and random replacement strategies. (Closed)
Patch Set: Created 4 years, 2 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 | « include/gpu/GrGpuResource.h ('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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 : fContext(context) 69 : fContext(context)
70 , fOptionsForDrawTargets(optionsForDrawTargets) 70 , fOptionsForDrawTargets(optionsForDrawTargets)
71 , fOptionsForPathRendererChain(optionsForPathRendererChain) 71 , fOptionsForPathRendererChain(optionsForPathRendererChain)
72 , fSingleOwner(singleOwner) 72 , fSingleOwner(singleOwner)
73 , fAbandoned(false) 73 , fAbandoned(false)
74 , fAtlasTextContext(nullptr) 74 , fAtlasTextContext(nullptr)
75 , fPathRendererChain(nullptr) 75 , fPathRendererChain(nullptr)
76 , fSoftwarePathRenderer(nullptr) 76 , fSoftwarePathRenderer(nullptr)
77 , fFlushState(context->getGpu(), context->resourceProvider()) 77 , fFlushState(context->getGpu(), context->resourceProvider())
78 , fFlushing(false) 78 , fFlushing(false)
79 , fLastFlushType(GrResourceCache::FlushType::kExternal)
80 , fIsImmediateMode(isImmediateMode) { 79 , fIsImmediateMode(isImmediateMode) {
81 } 80 }
82 81
83 void abandon(); 82 void abandon();
84 void cleanup(); 83 void cleanup();
85 void reset(); 84 void reset();
86 void flush() { this->internalFlush(GrResourceCache::FlushType::kExternal); } 85 void flush() { this->internalFlush(GrResourceCache::FlushType::kExternal); }
87 void internalFlush(GrResourceCache::FlushType); 86 void internalFlush(GrResourceCache::FlushType);
88 87
89 friend class GrContext; // for access to: ctor, abandon, reset & flush 88 friend class GrContext; // for access to: ctor, abandon, reset & flush
(...skipping 11 matching lines...) Expand all
101 bool fAbandoned; 100 bool fAbandoned;
102 SkTDArray<GrDrawTarget*> fDrawTargets; 101 SkTDArray<GrDrawTarget*> fDrawTargets;
103 102
104 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext; 103 SkAutoTDelete<GrAtlasTextContext> fAtlasTextContext;
105 104
106 GrPathRendererChain* fPathRendererChain; 105 GrPathRendererChain* fPathRendererChain;
107 GrSoftwarePathRenderer* fSoftwarePathRenderer; 106 GrSoftwarePathRenderer* fSoftwarePathRenderer;
108 107
109 GrBatchFlushState fFlushState; 108 GrBatchFlushState fFlushState;
110 bool fFlushing; 109 bool fFlushing;
111 GrResourceCache::FlushType fLastFlushType;
112 110
113 bool fIsImmediateMode; 111 bool fIsImmediateMode;
114 }; 112 };
115 113
116 #endif 114 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrGpuResource.h ('k') | src/gpu/GrDrawingManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698