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

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

Issue 1417853006: gpu: introduce glSetStreamTextureSizeCHROMIUM(GLuint texture, GLint stream_id, GLsizei width, GLsiz… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android_webview.test failure 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
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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 const base::Closure& callback) { 351 const base::Closure& callback) {
352 // TODO(piman) 352 // TODO(piman)
353 NOTIMPLEMENTED(); 353 NOTIMPLEMENTED();
354 } 354 }
355 355
356 void CommandBufferClientImpl::SetSurfaceVisible(bool visible) { 356 void CommandBufferClientImpl::SetSurfaceVisible(bool visible) {
357 // TODO(piman) 357 // TODO(piman)
358 NOTIMPLEMENTED(); 358 NOTIMPLEMENTED();
359 } 359 }
360 360
361 uint32_t CommandBufferClientImpl::CreateStreamTexture(uint32_t texture_id) { 361 int32 CommandBufferClientImpl::CreateStreamTexture(uint32_t texture_id) {
362 // TODO(piman) 362 // TODO(piman)
363 NOTIMPLEMENTED(); 363 NOTIMPLEMENTED();
364 return 0; 364 return 0;
365 } 365 }
366 366
367 void CommandBufferClientImpl::SetStreamTextureSize(uint32 texture_id,
368 int32 stream_id,
369 size_t width,
370 size_t height) {
371 // TODO(piman)
372 NOTIMPLEMENTED();
373 }
374
367 void CommandBufferClientImpl::DidLoseContext(int32_t lost_reason) { 375 void CommandBufferClientImpl::DidLoseContext(int32_t lost_reason) {
368 last_state_.error = gpu::error::kLostContext; 376 last_state_.error = gpu::error::kLostContext;
369 last_state_.context_lost_reason = 377 last_state_.context_lost_reason =
370 static_cast<gpu::error::ContextLostReason>(lost_reason); 378 static_cast<gpu::error::ContextLostReason>(lost_reason);
371 delegate_->ContextLost(); 379 delegate_->ContextLost();
372 } 380 }
373 381
374 void CommandBufferClientImpl::TryUpdateState() { 382 void CommandBufferClientImpl::TryUpdateState() {
375 if (last_state_.error == gpu::error::kNoError) 383 if (last_state_.error == gpu::error::kNoError)
376 shared_state()->Read(&last_state_); 384 shared_state()->Read(&last_state_);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // TODO(dyen) 441 // TODO(dyen)
434 } 442 }
435 443
436 bool CommandBufferClientImpl::CanWaitUnverifiedSyncToken( 444 bool CommandBufferClientImpl::CanWaitUnverifiedSyncToken(
437 const gpu::SyncToken* sync_token) { 445 const gpu::SyncToken* sync_token) {
438 // All sync tokens must be flushed before being waited on. 446 // All sync tokens must be flushed before being waited on.
439 return false; 447 return false;
440 } 448 }
441 449
442 } // namespace gles2 450 } // namespace gles2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698