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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 1273163004: Revert of cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 settings.create_low_res_tiling = false; 460 settings.create_low_res_tiling = false;
461 if (cmd->HasSwitch(cc::switches::kEnableBeginFrameScheduling)) 461 if (cmd->HasSwitch(cc::switches::kEnableBeginFrameScheduling))
462 settings.use_external_begin_frame_source = true; 462 settings.use_external_begin_frame_source = true;
463 463
464 if (widget_->for_oopif()) { 464 if (widget_->for_oopif()) {
465 // TODO(simonhong): Apply BeginFrame scheduling for OOPIF. 465 // TODO(simonhong): Apply BeginFrame scheduling for OOPIF.
466 // See crbug.com/471411. 466 // See crbug.com/471411.
467 settings.use_external_begin_frame_source = false; 467 settings.use_external_begin_frame_source = false;
468 } 468 }
469 469
470 settings.max_staging_buffers = 32;
471 // Use 1/4th of staging buffers on low-end devices.
472 if (base::SysInfo::IsLowEndDevice())
473 settings.max_staging_buffers /= 4;
474
475 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner = 470 scoped_refptr<base::SingleThreadTaskRunner> compositor_thread_task_runner =
476 compositor_deps_->GetCompositorImplThreadTaskRunner(); 471 compositor_deps_->GetCompositorImplThreadTaskRunner();
477 scoped_refptr<base::SingleThreadTaskRunner> 472 scoped_refptr<base::SingleThreadTaskRunner>
478 main_thread_compositor_task_runner = 473 main_thread_compositor_task_runner =
479 compositor_deps_->GetCompositorMainThreadTaskRunner(); 474 compositor_deps_->GetCompositorMainThreadTaskRunner();
480 cc::SharedBitmapManager* shared_bitmap_manager = 475 cc::SharedBitmapManager* shared_bitmap_manager =
481 compositor_deps_->GetSharedBitmapManager(); 476 compositor_deps_->GetSharedBitmapManager();
482 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager = 477 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager =
483 compositor_deps_->GetGpuMemoryBufferManager(); 478 compositor_deps_->GetGpuMemoryBufferManager();
484 cc::TaskGraphRunner* task_graph_runner = 479 cc::TaskGraphRunner* task_graph_runner =
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 return; 1033 return;
1039 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 1034 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
1040 } 1035 }
1041 1036
1042 void RenderWidgetCompositor::SetSurfaceIdNamespace( 1037 void RenderWidgetCompositor::SetSurfaceIdNamespace(
1043 uint32_t surface_id_namespace) { 1038 uint32_t surface_id_namespace) {
1044 layer_tree_host_->set_surface_id_namespace(surface_id_namespace); 1039 layer_tree_host_->set_surface_id_namespace(surface_id_namespace);
1045 } 1040 }
1046 1041
1047 } // namespace content 1042 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_metrics.cc ('k') | gpu/command_buffer/service/query_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698