From 7943ecb42a7841ebff9b51eb85ac7f4937537243 Mon Sep 17 00:00:00 2001 From: Brian Osman <brianosman@google.com> Date: Tue, 3 Oct 2017 20:43:12 +0000 Subject: [PATCH] Disable SW path renderer mask caching in Skia When this was enabled by default in Skia, we saw some perf regressions in chromium. Turning it off here to go back to the old behavior. Bug: 770374 Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: Ia5aedb25d1f00d12c827a9c6bfb065b93ff687e5 Reviewed-on: https://chromium-review.googlesource.com/695464 Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Zhenyao Mo <zmo@chromium.org> Commit-Queue: Brian Osman <brianosman@google.com> Cr-Commit-Position: refs/heads/master@{#506163} --- gpu/skia_bindings/grcontext_for_gles2_interface.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gpu/skia_bindings/grcontext_for_gles2_interface.cc b/gpu/skia_bindings/grcontext_for_gles2_interface.cc index f636f7161565b..a345ff5ad66bf 100644 --- a/gpu/skia_bindings/grcontext_for_gles2_interface.cc +++ b/gpu/skia_bindings/grcontext_for_gles2_interface.cc @@ -53,6 +53,7 @@ GrContextForGLES2Interface::GrContextForGLES2Interface( GrContextOptions options; options.fGlyphCacheTextureMaximumBytes = max_glyph_cache_texture_bytes; options.fAvoidStencilBuffers = capabilities.avoid_stencil_buffers; + options.fAllowPathMaskCaching = false; sk_sp<GrGLInterface> interface( skia_bindings::CreateGLES2InterfaceBindings(gl)); gr_context_ = sk_sp<GrContext>(GrContext::Create(