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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase Created 3 years, 7 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 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 956
957 void InProcessCommandBuffer::SetLock(base::Lock*) { 957 void InProcessCommandBuffer::SetLock(base::Lock*) {
958 // No support for using on multiple threads. 958 // No support for using on multiple threads.
959 NOTREACHED(); 959 NOTREACHED();
960 } 960 }
961 961
962 void InProcessCommandBuffer::EnsureWorkVisible() { 962 void InProcessCommandBuffer::EnsureWorkVisible() {
963 // This is only relevant for out-of-process command buffers. 963 // This is only relevant for out-of-process command buffers.
964 } 964 }
965 965
966 void InProcessCommandBuffer::EnsureWorkVisibleAsync() {}
967
966 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const { 968 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const {
967 return CommandBufferNamespace::IN_PROCESS; 969 return CommandBufferNamespace::IN_PROCESS;
968 } 970 }
969 971
970 CommandBufferId InProcessCommandBuffer::GetCommandBufferID() const { 972 CommandBufferId InProcessCommandBuffer::GetCommandBufferID() const {
971 return command_buffer_id_; 973 return command_buffer_id_;
972 } 974 }
973 975
974 int32_t InProcessCommandBuffer::GetExtraCommandBufferData() const { 976 int32_t InProcessCommandBuffer::GetExtraCommandBufferData() const {
975 return 0; 977 return 0;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 return wrapped_callback; 1152 return wrapped_callback;
1151 } 1153 }
1152 1154
1153 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, 1155 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback,
1154 uint32_t order_number) 1156 uint32_t order_number)
1155 : callback(callback), order_number(order_number) {} 1157 : callback(callback), order_number(order_number) {}
1156 1158
1157 InProcessCommandBuffer::GpuTask::~GpuTask() {} 1159 InProcessCommandBuffer::GpuTask::~GpuTask() {}
1158 1160
1159 } // namespace gpu 1161 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698