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

Side by Side Diff: components/mus/gles2/command_buffer_local.cc

Issue 1345813002: Added a unique command buffer ID for command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NamespaceID and CommandBufferID for CommandBufferLocal Created 5 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/mus/gles2/command_buffer_local.h" 5 #include "components/mus/gles2/command_buffer_local.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "components/mus/gles2/command_buffer_local_client.h" 8 #include "components/mus/gles2/command_buffer_local_client.h"
9 #include "components/mus/gles2/gpu_memory_tracker.h" 9 #include "components/mus/gles2/gpu_memory_tracker.h"
10 #include "components/mus/gles2/mojo_gpu_memory_buffer.h" 10 #include "components/mus/gles2/mojo_gpu_memory_buffer.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 void CommandBufferLocal::SetLock(base::Lock* lock) { 206 void CommandBufferLocal::SetLock(base::Lock* lock) {
207 NOTIMPLEMENTED(); 207 NOTIMPLEMENTED();
208 } 208 }
209 209
210 bool CommandBufferLocal::IsGpuChannelLost() { 210 bool CommandBufferLocal::IsGpuChannelLost() {
211 // This is only possible for out-of-process command buffers. 211 // This is only possible for out-of-process command buffers.
212 return false; 212 return false;
213 } 213 }
214 214
215 gpu::CommandBufferNamespace CommandBufferLocal::GetNamespaceID() const {
216 NOTIMPLEMENTED();
sky 2015/09/17 17:03:06 Are these going to be spammy? What is the conseque
David Yen 2015/09/17 17:07:04 These are going to be used for a new sync point im
217 return gpu::kCommandBufferNamespace_Invalid;
218 }
219
220 uint64_t CommandBufferLocal::GetCommandBufferID() const {
221 NOTIMPLEMENTED();
222 return 0;
223 }
224
215 void CommandBufferLocal::PumpCommands() { 225 void CommandBufferLocal::PumpCommands() {
216 if (!decoder_->MakeCurrent()) { 226 if (!decoder_->MakeCurrent()) {
217 command_buffer_->SetContextLostReason(decoder_->GetContextLostReason()); 227 command_buffer_->SetContextLostReason(decoder_->GetContextLostReason());
218 command_buffer_->SetParseError(::gpu::error::kLostContext); 228 command_buffer_->SetParseError(::gpu::error::kLostContext);
219 return; 229 return;
220 } 230 }
221 scheduler_->PutChanged(); 231 scheduler_->PutChanged();
222 } 232 }
223 233
224 void CommandBufferLocal::OnResize(gfx::Size size, float scale_factor) { 234 void CommandBufferLocal::OnResize(gfx::Size size, float scale_factor) {
(...skipping 28 matching lines...) Expand all
253 void CommandBufferLocal::OnContextLost(uint32_t reason) { 263 void CommandBufferLocal::OnContextLost(uint32_t reason) {
254 if (client_) 264 if (client_)
255 client_->DidLoseContext(); 265 client_->DidLoseContext();
256 } 266 }
257 267
258 void CommandBufferLocal::OnSyncPointRetired() { 268 void CommandBufferLocal::OnSyncPointRetired() {
259 scheduler_->SetScheduled(true); 269 scheduler_->SetScheduled(true);
260 } 270 }
261 271
262 } // namespace gles2 272 } // namespace gles2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698