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

Side by Side Diff: src/gpu/GrContext.cpp

Issue 1763883005: Attempt to combine batches in forward direction before flush (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix extra space Created 4 years, 9 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/GrContextOptions.h ('k') | src/gpu/GrDrawTarget.h » ('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 2011 Google Inc. 2 * Copyright 2011 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 #include "GrContext.h" 8 #include "GrContext.h"
9 #include "GrContextOptions.h" 9 #include "GrContextOptions.h"
10 #include "GrDrawingManager.h" 10 #include "GrDrawingManager.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 fResourceProvider = new GrResourceProvider(fGpu, fResourceCache, &fSingleOwn er); 88 fResourceProvider = new GrResourceProvider(fGpu, fResourceCache, &fSingleOwn er);
89 89
90 fLayerCache.reset(new GrLayerCache(this)); 90 fLayerCache.reset(new GrLayerCache(this));
91 91
92 fDidTestPMConversions = false; 92 fDidTestPMConversions = false;
93 93
94 GrDrawTarget::Options dtOptions; 94 GrDrawTarget::Options dtOptions;
95 dtOptions.fClipBatchToBounds = options.fClipBatchToBounds; 95 dtOptions.fClipBatchToBounds = options.fClipBatchToBounds;
96 dtOptions.fDrawBatchBounds = options.fDrawBatchBounds; 96 dtOptions.fDrawBatchBounds = options.fDrawBatchBounds;
97 dtOptions.fMaxBatchLookback = options.fMaxBatchLookback; 97 dtOptions.fMaxBatchLookback = options.fMaxBatchLookback;
98 dtOptions.fMaxBatchLookahead = options.fMaxBatchLookahead;
98 fDrawingManager.reset(new GrDrawingManager(this, dtOptions, &fSingleOwner)); 99 fDrawingManager.reset(new GrDrawingManager(this, dtOptions, &fSingleOwner));
99 100
100 // GrBatchFontCache will eventually replace GrFontCache 101 // GrBatchFontCache will eventually replace GrFontCache
101 fBatchFontCache = new GrBatchFontCache(this); 102 fBatchFontCache = new GrBatchFontCache(this);
102 103
103 fTextBlobCache.reset(new GrTextBlobCache(TextBlobCacheOverBudgetCB, this)); 104 fTextBlobCache.reset(new GrTextBlobCache(TextBlobCacheOverBudgetCB, this));
104 } 105 }
105 106
106 GrContext::~GrContext() { 107 GrContext::~GrContext() {
107 ASSERT_SINGLE_OWNER 108 ASSERT_SINGLE_OWNER
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 ASSERT_SINGLE_OWNER 663 ASSERT_SINGLE_OWNER
663 fResourceCache->setLimits(maxTextures, maxTextureBytes); 664 fResourceCache->setLimits(maxTextures, maxTextureBytes);
664 } 665 }
665 666
666 ////////////////////////////////////////////////////////////////////////////// 667 //////////////////////////////////////////////////////////////////////////////
667 668
668 void GrContext::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { 669 void GrContext::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const {
669 ASSERT_SINGLE_OWNER 670 ASSERT_SINGLE_OWNER
670 fResourceCache->dumpMemoryStatistics(traceMemoryDump); 671 fResourceCache->dumpMemoryStatistics(traceMemoryDump);
671 } 672 }
OLDNEW
« no previous file with comments | « include/gpu/GrContextOptions.h ('k') | src/gpu/GrDrawTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698