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

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

Issue 2673433002: Fix in-process compositing on Windows 10. (Closed)
Patch Set: 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 | « no previous file | no next file » | 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 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 1041
1042 bool InProcessCommandBuffer::CanWaitUnverifiedSyncToken( 1042 bool InProcessCommandBuffer::CanWaitUnverifiedSyncToken(
1043 const SyncToken* sync_token) { 1043 const SyncToken* sync_token) {
1044 return sync_token->namespace_id() == GetNamespaceID(); 1044 return sync_token->namespace_id() == GetNamespaceID();
1045 } 1045 }
1046 1046
1047 #if defined(OS_WIN) 1047 #if defined(OS_WIN)
1048 void InProcessCommandBuffer::DidCreateAcceleratedSurfaceChildWindow( 1048 void InProcessCommandBuffer::DidCreateAcceleratedSurfaceChildWindow(
1049 SurfaceHandle parent_window, 1049 SurfaceHandle parent_window,
1050 SurfaceHandle child_window) { 1050 SurfaceHandle child_window) {
1051 // TODO(fsamuel): Implement this. 1051 ::SetParent(child_window, parent_window);
1052 } 1052 }
1053 #endif 1053 #endif
1054 1054
1055 void InProcessCommandBuffer::DidSwapBuffersComplete( 1055 void InProcessCommandBuffer::DidSwapBuffersComplete(
1056 SwapBuffersCompleteParams params) { 1056 SwapBuffersCompleteParams params) {
1057 if (!origin_task_runner_) { 1057 if (!origin_task_runner_) {
1058 DidSwapBuffersCompleteOnOriginThread(std::move(params)); 1058 DidSwapBuffersCompleteOnOriginThread(std::move(params));
1059 return; 1059 return;
1060 } 1060 }
1061 origin_task_runner_->PostTask( 1061 origin_task_runner_->PostTask(
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 return wrapped_callback; 1168 return wrapped_callback;
1169 } 1169 }
1170 1170
1171 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, 1171 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback,
1172 uint32_t order_number) 1172 uint32_t order_number)
1173 : callback(callback), order_number(order_number) {} 1173 : callback(callback), order_number(order_number) {}
1174 1174
1175 InProcessCommandBuffer::GpuTask::~GpuTask() {} 1175 InProcessCommandBuffer::GpuTask::~GpuTask() {}
1176 1176
1177 } // namespace gpu 1177 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698