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

Side by Side Diff: content/browser/compositor/gpu_browser_compositor_output_surface.cc

Issue 1827123002: Move content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/compositor/gpu_browser_compositor_output_surface.h" 5 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 23 matching lines...) Expand all
34 swap_buffers_completion_callback_(base::Bind( 34 swap_buffers_completion_callback_(base::Bind(
35 &GpuBrowserCompositorOutputSurface::OnGpuSwapBuffersCompleted, 35 &GpuBrowserCompositorOutputSurface::OnGpuSwapBuffersCompleted,
36 base::Unretained(this))), 36 base::Unretained(this))),
37 update_vsync_parameters_callback_(base::Bind( 37 update_vsync_parameters_callback_(base::Bind(
38 &BrowserCompositorOutputSurface::OnUpdateVSyncParametersFromGpu, 38 &BrowserCompositorOutputSurface::OnUpdateVSyncParametersFromGpu,
39 base::Unretained(this))) { 39 base::Unretained(this))) {
40 } 40 }
41 41
42 GpuBrowserCompositorOutputSurface::~GpuBrowserCompositorOutputSurface() {} 42 GpuBrowserCompositorOutputSurface::~GpuBrowserCompositorOutputSurface() {}
43 43
44 CommandBufferProxyImpl* 44 gpu::CommandBufferProxyImpl*
45 GpuBrowserCompositorOutputSurface::GetCommandBufferProxy() { 45 GpuBrowserCompositorOutputSurface::GetCommandBufferProxy() {
46 ContextProviderCommandBuffer* provider_command_buffer = 46 ContextProviderCommandBuffer* provider_command_buffer =
47 static_cast<content::ContextProviderCommandBuffer*>( 47 static_cast<content::ContextProviderCommandBuffer*>(
48 context_provider_.get()); 48 context_provider_.get());
49 CommandBufferProxyImpl* command_buffer_proxy = 49 gpu::CommandBufferProxyImpl* command_buffer_proxy =
50 provider_command_buffer->GetCommandBufferProxy(); 50 provider_command_buffer->GetCommandBufferProxy();
51 DCHECK(command_buffer_proxy); 51 DCHECK(command_buffer_proxy);
52 return command_buffer_proxy; 52 return command_buffer_proxy;
53 } 53 }
54 54
55 bool GpuBrowserCompositorOutputSurface::BindToClient( 55 bool GpuBrowserCompositorOutputSurface::BindToClient(
56 cc::OutputSurfaceClient* client) { 56 cc::OutputSurfaceClient* client) {
57 if (!BrowserCompositorOutputSurface::BindToClient(client)) 57 if (!BrowserCompositorOutputSurface::BindToClient(client))
58 return false; 58 return false;
59 59
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 bool GpuBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() const { 155 bool GpuBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() const {
156 #if defined(OS_MACOSX) 156 #if defined(OS_MACOSX)
157 return should_show_frames_state_ == SHOULD_NOT_SHOW_FRAMES_SUSPENDED; 157 return should_show_frames_state_ == SHOULD_NOT_SHOW_FRAMES_SUSPENDED;
158 #else 158 #else
159 return false; 159 return false;
160 #endif 160 #endif
161 } 161 }
162 162
163 } // namespace content 163 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698