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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 1425533006: cc: Add flag to specify to ResourceProvider to always use GMBs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test and build Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/test/fake_compositor_dependencies.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index d57356c77d155da9a360e7d5be6e137d805ea695..9d77d59da47f26e21f443766a02dfc36343e39ef 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -705,6 +705,8 @@ void RenderThreadImpl::Init() {
is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy);
is_partial_raster_enabled_ =
command_line.HasSwitch(switches::kEnablePartialRaster);
+ is_gpu_memory_buffer_compositor_resources_enabled_ = command_line.HasSwitch(
+ switches::kEnableGpuMemoryBufferCompositorResources);
#if defined(OS_MACOSX) && !defined(OS_IOS)
is_elastic_overscroll_enabled_ = base::mac::IsOSLionOrLater();
@@ -1503,6 +1505,10 @@ bool RenderThreadImpl::IsPartialRasterEnabled() {
return is_partial_raster_enabled_;
}
+bool RenderThreadImpl::IsGpuMemoryBufferCompositorResourcesEnabled() {
+ return is_gpu_memory_buffer_compositor_resources_enabled_;
+}
+
bool RenderThreadImpl::IsElasticOverscrollEnabled() {
return is_elastic_overscroll_enabled_;
}
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/test/fake_compositor_dependencies.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698