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

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.cc

Issue 656263003: cc: Move GpuMemoryBufferManager interface to gpu namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn build fix Created 6 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/common/BUILD.gn ('k') | content/common/gpu/client/gpu_channel_host.h » ('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/common/gpu/client/command_buffer_proxy_impl.h" 5 #include "content/common/gpu/client/command_buffer_proxy_impl.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "cc/resources/gpu_memory_buffer_manager.h"
13 #include "content/common/child_process_messages.h" 12 #include "content/common/child_process_messages.h"
14 #include "content/common/gpu/client/gpu_channel_host.h" 13 #include "content/common/gpu/client/gpu_channel_host.h"
15 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" 14 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h"
16 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" 15 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h"
17 #include "content/common/gpu/gpu_messages.h" 16 #include "content/common/gpu/gpu_messages.h"
18 #include "content/common/view_messages.h" 17 #include "content/common/view_messages.h"
18 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
19 #include "gpu/command_buffer/common/cmd_buffer_common.h" 19 #include "gpu/command_buffer/common/cmd_buffer_common.h"
20 #include "gpu/command_buffer/common/command_buffer_shared.h" 20 #include "gpu/command_buffer/common/command_buffer_shared.h"
21 #include "gpu/command_buffer/common/gpu_memory_allocation.h" 21 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
22 #include "ui/gfx/size.h" 22 #include "ui/gfx/size.h"
23 #include "ui/gl/gl_bindings.h" 23 #include "ui/gl/gl_bindings.h"
24 24
25 namespace content { 25 namespace content {
26 namespace { 26 namespace {
27 27
28 gfx::GpuMemoryBuffer::Format ImageFormatToGpuMemoryBufferFormat( 28 gfx::GpuMemoryBuffer::Format ImageFormatToGpuMemoryBufferFormat(
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 if (!ui::LatencyInfo::Verify( 582 if (!ui::LatencyInfo::Verify(
583 latency_info, "CommandBufferProxyImpl::OnSwapBuffersCompleted")) { 583 latency_info, "CommandBufferProxyImpl::OnSwapBuffersCompleted")) {
584 swap_buffers_completion_callback_.Run(std::vector<ui::LatencyInfo>()); 584 swap_buffers_completion_callback_.Run(std::vector<ui::LatencyInfo>());
585 return; 585 return;
586 } 586 }
587 swap_buffers_completion_callback_.Run(latency_info); 587 swap_buffers_completion_callback_.Run(latency_info);
588 } 588 }
589 } 589 }
590 590
591 } // namespace content 591 } // namespace content
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/gpu/client/gpu_channel_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698