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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 2490503002: gpu: A common GpuMemoryBufferManager implemenetation for clients. (Closed)
Patch Set: tot merge Created 4 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 unified diff | Download patch
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | gpu/ipc/client/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 scoped_refptr<base::SingleThreadTaskRunner> 1652 scoped_refptr<base::SingleThreadTaskRunner>
1653 RenderThreadImpl::GetCompositorImplThreadTaskRunner() { 1653 RenderThreadImpl::GetCompositorImplThreadTaskRunner() {
1654 return compositor_task_runner_; 1654 return compositor_task_runner_;
1655 } 1655 }
1656 1656
1657 gpu::GpuMemoryBufferManager* RenderThreadImpl::GetGpuMemoryBufferManager() { 1657 gpu::GpuMemoryBufferManager* RenderThreadImpl::GetGpuMemoryBufferManager() {
1658 #if defined(USE_AURA) 1658 #if defined(USE_AURA)
1659 if (gpu_service_) 1659 if (gpu_service_)
1660 return gpu_service_->gpu_memory_buffer_manager(); 1660 return gpu_service_->gpu_memory_buffer_manager();
1661 #endif 1661 #endif
1662 return gpu_memory_buffer_manager_.get(); 1662 return gpu_memory_buffer_manager_->gpu_memory_buffer_manager();
1663 } 1663 }
1664 1664
1665 blink::scheduler::RendererScheduler* RenderThreadImpl::GetRendererScheduler() { 1665 blink::scheduler::RendererScheduler* RenderThreadImpl::GetRendererScheduler() {
1666 return renderer_scheduler_.get(); 1666 return renderer_scheduler_.get();
1667 } 1667 }
1668 1668
1669 std::unique_ptr<cc::BeginFrameSource> 1669 std::unique_ptr<cc::BeginFrameSource>
1670 RenderThreadImpl::CreateExternalBeginFrameSource(int routing_id) { 1670 RenderThreadImpl::CreateExternalBeginFrameSource(int routing_id) {
1671 const base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); 1671 const base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
1672 if (cmd->HasSwitch(switches::kDisableGpuVsync)) { 1672 if (cmd->HasSwitch(switches::kDisableGpuVsync)) {
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
2510 } 2510 }
2511 } 2511 }
2512 2512
2513 void RenderThreadImpl::OnRendererInterfaceRequest( 2513 void RenderThreadImpl::OnRendererInterfaceRequest(
2514 mojom::RendererAssociatedRequest request) { 2514 mojom::RendererAssociatedRequest request) {
2515 DCHECK(!renderer_binding_.is_bound()); 2515 DCHECK(!renderer_binding_.is_bound());
2516 renderer_binding_.Bind(std::move(request)); 2516 renderer_binding_.Bind(std::move(request));
2517 } 2517 }
2518 2518
2519 } // namespace content 2519 } // namespace content
OLDNEW
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | gpu/ipc/client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698