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

Side by Side Diff: gpu/ipc/in_process_command_buffer.cc

Issue 2681033011: Changed GpuVSyncProvider to implement gfx::VSyncProvider (Closed)
Patch Set: Addressed CR feedback Created 3 years, 10 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
« no previous file with comments | « gpu/ipc/in_process_command_buffer.h ('k') | gpu/ipc/service/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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "gpu/ipc/in_process_command_buffer.h" 5 #include "gpu/ipc/in_process_command_buffer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 if (!origin_task_runner_) { 1056 if (!origin_task_runner_) {
1057 UpdateVSyncParametersOnOriginThread(timebase, interval); 1057 UpdateVSyncParametersOnOriginThread(timebase, interval);
1058 return; 1058 return;
1059 } 1059 }
1060 origin_task_runner_->PostTask( 1060 origin_task_runner_->PostTask(
1061 FROM_HERE, 1061 FROM_HERE,
1062 base::Bind(&InProcessCommandBuffer::UpdateVSyncParametersOnOriginThread, 1062 base::Bind(&InProcessCommandBuffer::UpdateVSyncParametersOnOriginThread,
1063 client_thread_weak_ptr_, timebase, interval)); 1063 client_thread_weak_ptr_, timebase, interval));
1064 } 1064 }
1065 1065
1066 void InProcessCommandBuffer::AddFilter(IPC::MessageFilter* message_filter) {
1067 NOTREACHED();
1068 }
1069
1070 int32_t InProcessCommandBuffer::GetRouteID() const {
1071 NOTREACHED();
1072 return 0;
1073 }
1074
1066 void InProcessCommandBuffer::DidSwapBuffersCompleteOnOriginThread( 1075 void InProcessCommandBuffer::DidSwapBuffersCompleteOnOriginThread(
1067 SwapBuffersCompleteParams params) { 1076 SwapBuffersCompleteParams params) {
1068 #if defined(OS_MACOSX) 1077 #if defined(OS_MACOSX)
1069 gpu::GpuProcessHostedCALayerTreeParamsMac params_mac; 1078 gpu::GpuProcessHostedCALayerTreeParamsMac params_mac;
1070 params_mac.ca_context_id = params.ca_context_id; 1079 params_mac.ca_context_id = params.ca_context_id;
1071 params_mac.fullscreen_low_power_ca_context_valid = 1080 params_mac.fullscreen_low_power_ca_context_valid =
1072 params.fullscreen_low_power_ca_context_valid; 1081 params.fullscreen_low_power_ca_context_valid;
1073 params_mac.fullscreen_low_power_ca_context_id = 1082 params_mac.fullscreen_low_power_ca_context_id =
1074 params.fullscreen_low_power_ca_context_id; 1083 params.fullscreen_low_power_ca_context_id;
1075 params_mac.io_surface.reset(IOSurfaceLookupFromMachPort(params.io_surface)); 1084 params_mac.io_surface.reset(IOSurfaceLookupFromMachPort(params.io_surface));
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 return wrapped_callback; 1155 return wrapped_callback;
1147 } 1156 }
1148 1157
1149 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, 1158 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback,
1150 uint32_t order_number) 1159 uint32_t order_number)
1151 : callback(callback), order_number(order_number) {} 1160 : callback(callback), order_number(order_number) {}
1152 1161
1153 InProcessCommandBuffer::GpuTask::~GpuTask() {} 1162 InProcessCommandBuffer::GpuTask::~GpuTask() {}
1154 1163
1155 } // namespace gpu 1164 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/in_process_command_buffer.h ('k') | gpu/ipc/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698