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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/gles2/command_buffer_client_impl.h" 5 #include "mojo/gles2/command_buffer_client_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/process/process_handle.h" 10 #include "base/process/process_handle.h"
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // TODO(piman) 349 // TODO(piman)
350 NOTIMPLEMENTED(); 350 NOTIMPLEMENTED();
351 } 351 }
352 352
353 uint32_t CommandBufferClientImpl::CreateStreamTexture(uint32_t texture_id) { 353 uint32_t CommandBufferClientImpl::CreateStreamTexture(uint32_t texture_id) {
354 // TODO(piman) 354 // TODO(piman)
355 NOTIMPLEMENTED(); 355 NOTIMPLEMENTED();
356 return 0; 356 return 0;
357 } 357 }
358 358
359 uint32 CommandBufferClientImpl::CreateStreamTextureImage(int32 image_id) {
360 NOTIMPLEMENTED();
361 return 0
362 }
363
359 void CommandBufferClientImpl::DidLoseContext(int32_t lost_reason) { 364 void CommandBufferClientImpl::DidLoseContext(int32_t lost_reason) {
360 last_state_.error = gpu::error::kLostContext; 365 last_state_.error = gpu::error::kLostContext;
361 last_state_.context_lost_reason = 366 last_state_.context_lost_reason =
362 static_cast<gpu::error::ContextLostReason>(lost_reason); 367 static_cast<gpu::error::ContextLostReason>(lost_reason);
363 delegate_->ContextLost(); 368 delegate_->ContextLost();
364 } 369 }
365 370
366 void CommandBufferClientImpl::TryUpdateState() { 371 void CommandBufferClientImpl::TryUpdateState() {
367 if (last_state_.error == gpu::error::kNoError) 372 if (last_state_.error == gpu::error::kNoError)
368 shared_state()->Read(&last_state_); 373 shared_state()->Read(&last_state_);
(...skipping 16 matching lines...) Expand all
385 390
386 void CommandBufferClientImpl::SetLock(base::Lock* lock) { 391 void CommandBufferClientImpl::SetLock(base::Lock* lock) {
387 } 392 }
388 393
389 bool CommandBufferClientImpl::IsGpuChannelLost() { 394 bool CommandBufferClientImpl::IsGpuChannelLost() {
390 // This is only possible for out-of-process command buffers. 395 // This is only possible for out-of-process command buffers.
391 return false; 396 return false;
392 } 397 }
393 398
394 } // namespace gles2 399 } // namespace gles2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698