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

Side by Side Diff: services/ui/surfaces/surfaces_context_provider.cc

Issue 2276433004: services/ui: Rename a few gpu-related classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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 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 "services/ui/surfaces/surfaces_context_provider.h" 5 #include "services/ui/surfaces/surfaces_context_provider.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "gpu/command_buffer/client/gles2_cmd_helper.h" 15 #include "gpu/command_buffer/client/gles2_cmd_helper.h"
16 #include "gpu/command_buffer/client/gles2_implementation.h" 16 #include "gpu/command_buffer/client/gles2_implementation.h"
17 #include "gpu/command_buffer/client/shared_memory_limits.h" 17 #include "gpu/command_buffer/client/shared_memory_limits.h"
18 #include "gpu/command_buffer/client/transfer_buffer.h" 18 #include "gpu/command_buffer/client/transfer_buffer.h"
19 #include "gpu/ipc/client/command_buffer_proxy_impl.h" 19 #include "gpu/ipc/client/command_buffer_proxy_impl.h"
20 #include "services/ui/common/switches.h" 20 #include "services/ui/common/switches.h"
21 #include "services/ui/gpu/gpu_service_mus.h" 21 #include "services/ui/gpu/gpu_service_internal.h"
22 #include "services/ui/surfaces/surfaces_context_provider_delegate.h" 22 #include "services/ui/surfaces/surfaces_context_provider_delegate.h"
23 #include "ui/gl/gpu_preference.h" 23 #include "ui/gl/gpu_preference.h"
24 24
25 namespace ui { 25 namespace ui {
26 26
27 SurfacesContextProvider::SurfacesContextProvider(gfx::AcceleratedWidget widget) 27 SurfacesContextProvider::SurfacesContextProvider(gfx::AcceleratedWidget widget)
28 : delegate_(nullptr), widget_(widget) { 28 : delegate_(nullptr), widget_(widget) {
29 GpuServiceMus* service = GpuServiceMus::GetInstance(); 29 GpuServiceInternal* service = GpuServiceInternal::GetInstance();
30 gpu::CommandBufferProxyImpl* shared_command_buffer = nullptr; 30 gpu::CommandBufferProxyImpl* shared_command_buffer = nullptr;
31 gpu::GpuStreamId stream_id = gpu::GpuStreamId::GPU_STREAM_DEFAULT; 31 gpu::GpuStreamId stream_id = gpu::GpuStreamId::GPU_STREAM_DEFAULT;
32 gpu::GpuStreamPriority stream_priority = gpu::GpuStreamPriority::NORMAL; 32 gpu::GpuStreamPriority stream_priority = gpu::GpuStreamPriority::NORMAL;
33 gpu::gles2::ContextCreationAttribHelper attributes; 33 gpu::gles2::ContextCreationAttribHelper attributes;
34 attributes.alpha_size = -1; 34 attributes.alpha_size = -1;
35 attributes.depth_size = 0; 35 attributes.depth_size = 0;
36 attributes.stencil_size = 0; 36 attributes.stencil_size = 0;
37 attributes.samples = 0; 37 attributes.samples = 0;
38 attributes.sample_buffers = 0; 38 attributes.sample_buffers = 0;
39 attributes.bind_generates_resource = false; 39 attributes.bind_generates_resource = false;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 if (delegate_) 149 if (delegate_)
150 delegate_->OnVSyncParametersUpdated(timebase, interval); 150 delegate_->OnVSyncParametersUpdated(timebase, interval);
151 } 151 }
152 152
153 void SurfacesContextProvider::SetSwapBuffersCompletionCallback( 153 void SurfacesContextProvider::SetSwapBuffersCompletionCallback(
154 gl::GLSurface::SwapCompletionCallback callback) { 154 gl::GLSurface::SwapCompletionCallback callback) {
155 swap_buffers_completion_callback_ = callback; 155 swap_buffers_completion_callback_ = callback;
156 } 156 }
157 157
158 } // namespace ui 158 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698