diff options
author | 2018-04-02 10:26:39 -0400 | |
---|---|---|
committer | 2018-04-02 15:42:30 +0000 | |
commit | 64ecdce4aded98b4b96d5d04ecba3bb08c16bc31 (patch) | |
tree | dd02c2892a6a5928bea611c864e3054b1c656f93 /src/gpu/GrContext.cpp | |
parent | 80e1d56e198c5fd9fe6db0c945bd558053a8dc6a (diff) |
Turn on rendertarget sorting
Change-Id: I1315d0864ee0963569c23f70c1185488b5216f99
Reviewed-on: https://skia-review.googlesource.com/117686
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rw-r--r-- | src/gpu/GrContext.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 1112b5705f..ce2dc8c1ae 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -126,8 +126,12 @@ bool GrContext::initCommon(const GrContextOptions& options) { } #endif + bool explicitlyAllocatingResources = fResourceProvider + ? fResourceProvider->explicitlyAllocateGPUResources() + : false; fDrawingManager.reset(new GrDrawingManager(this, prcOptions, atlasTextContextOptions, - &fSingleOwner, options.fSortRenderTargets)); + &fSingleOwner, explicitlyAllocatingResources, + options.fSortRenderTargets)); fGlyphCache = new GrGlyphCache(fCaps.get(), options.fGlyphCacheTextureMaximumBytes); |