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

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

Issue 2727573003: gpu: Add sync token dependencies to flush metadata. (Closed)
Patch Set: jbauman's review Created 3 years, 9 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 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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 974
975 void InProcessCommandBuffer::SignalSyncToken(const SyncToken& sync_token, 975 void InProcessCommandBuffer::SignalSyncToken(const SyncToken& sync_token,
976 const base::Closure& callback) { 976 const base::Closure& callback) {
977 CheckSequencedThread(); 977 CheckSequencedThread();
978 QueueTask( 978 QueueTask(
979 false, 979 false,
980 base::Bind(&InProcessCommandBuffer::SignalSyncTokenOnGpuThread, 980 base::Bind(&InProcessCommandBuffer::SignalSyncTokenOnGpuThread,
981 base::Unretained(this), sync_token, WrapCallback(callback))); 981 base::Unretained(this), sync_token, WrapCallback(callback)));
982 } 982 }
983 983
984 void InProcessCommandBuffer::WaitSyncToken(const SyncToken& sync_token) {}
985
984 bool InProcessCommandBuffer::CanWaitUnverifiedSyncToken( 986 bool InProcessCommandBuffer::CanWaitUnverifiedSyncToken(
985 const SyncToken* sync_token) { 987 const SyncToken& sync_token) {
986 return sync_token->namespace_id() == GetNamespaceID(); 988 return sync_token.namespace_id() == GetNamespaceID();
987 } 989 }
988 990
989 #if defined(OS_WIN) 991 #if defined(OS_WIN)
990 void InProcessCommandBuffer::DidCreateAcceleratedSurfaceChildWindow( 992 void InProcessCommandBuffer::DidCreateAcceleratedSurfaceChildWindow(
991 SurfaceHandle parent_window, 993 SurfaceHandle parent_window,
992 SurfaceHandle child_window) { 994 SurfaceHandle child_window) {
993 ::SetParent(child_window, parent_window); 995 ::SetParent(child_window, parent_window);
994 } 996 }
995 #endif 997 #endif
996 998
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 return wrapped_callback; 1121 return wrapped_callback;
1120 } 1122 }
1121 1123
1122 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, 1124 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback,
1123 uint32_t order_number) 1125 uint32_t order_number)
1124 : callback(callback), order_number(order_number) {} 1126 : callback(callback), order_number(order_number) {}
1125 1127
1126 InProcessCommandBuffer::GpuTask::~GpuTask() {} 1128 InProcessCommandBuffer::GpuTask::~GpuTask() {}
1127 1129
1128 } // namespace gpu 1130 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698