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

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

Issue 1385883002: Leave CreateStreamTexture route id out of the GL interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing TOT! Created 5 years, 1 month 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 | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/gpu/mojo_gles2_impl_autogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 const base::Closure& callback) { 355 const base::Closure& callback) {
356 // TODO(piman) 356 // TODO(piman)
357 NOTIMPLEMENTED(); 357 NOTIMPLEMENTED();
358 } 358 }
359 359
360 void CommandBufferClientImpl::SetSurfaceVisible(bool visible) { 360 void CommandBufferClientImpl::SetSurfaceVisible(bool visible) {
361 // TODO(piman) 361 // TODO(piman)
362 NOTIMPLEMENTED(); 362 NOTIMPLEMENTED();
363 } 363 }
364 364
365 uint32_t CommandBufferClientImpl::CreateStreamTexture(uint32_t texture_id) {
366 // TODO(piman)
367 NOTIMPLEMENTED();
368 return 0;
369 }
370
371 void CommandBufferClientImpl::DidLoseContext(int32_t lost_reason) { 365 void CommandBufferClientImpl::DidLoseContext(int32_t lost_reason) {
372 last_state_.error = gpu::error::kLostContext; 366 last_state_.error = gpu::error::kLostContext;
373 last_state_.context_lost_reason = 367 last_state_.context_lost_reason =
374 static_cast<gpu::error::ContextLostReason>(lost_reason); 368 static_cast<gpu::error::ContextLostReason>(lost_reason);
375 delegate_->ContextLost(); 369 delegate_->ContextLost();
376 } 370 }
377 371
378 void CommandBufferClientImpl::TryUpdateState() { 372 void CommandBufferClientImpl::TryUpdateState() {
379 if (last_state_.error == gpu::error::kNoError) 373 if (last_state_.error == gpu::error::kNoError)
380 shared_state()->Read(&last_state_); 374 shared_state()->Read(&last_state_);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 // TODO(dyen) 431 // TODO(dyen)
438 } 432 }
439 433
440 bool CommandBufferClientImpl::CanWaitUnverifiedSyncToken( 434 bool CommandBufferClientImpl::CanWaitUnverifiedSyncToken(
441 const gpu::SyncToken* sync_token) { 435 const gpu::SyncToken* sync_token) {
442 // All sync tokens must be flushed before being waited on. 436 // All sync tokens must be flushed before being waited on.
443 return false; 437 return false;
444 } 438 }
445 439
446 } // namespace gles2 440 } // namespace gles2
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/gpu/mojo_gles2_impl_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698