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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc

Issue 2686233004: Mark SwapBuffers for an offscreen surface as unimplemented (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/command_buffer/service/gles2_cmd_decoder_passthrough.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 8
9 namespace gpu { 9 namespace gpu {
10 namespace gles2 { 10 namespace gles2 {
(...skipping 2445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 glIsVertexArrayOES(GetVertexArrayServiceID(array, &vertex_array_id_map_)); 2456 glIsVertexArrayOES(GetVertexArrayServiceID(array, &vertex_array_id_map_));
2457 return error::kNoError; 2457 return error::kNoError;
2458 } 2458 }
2459 2459
2460 error::Error GLES2DecoderPassthroughImpl::DoBindVertexArrayOES(GLuint array) { 2460 error::Error GLES2DecoderPassthroughImpl::DoBindVertexArrayOES(GLuint array) {
2461 glBindVertexArrayOES(GetVertexArrayServiceID(array, &vertex_array_id_map_)); 2461 glBindVertexArrayOES(GetVertexArrayServiceID(array, &vertex_array_id_map_));
2462 return error::kNoError; 2462 return error::kNoError;
2463 } 2463 }
2464 2464
2465 error::Error GLES2DecoderPassthroughImpl::DoSwapBuffers() { 2465 error::Error GLES2DecoderPassthroughImpl::DoSwapBuffers() {
2466 if (offscreen_) {
2467 NOTIMPLEMENTED();
2468 return error::kNoError;
2469 }
2470
2466 gfx::SwapResult result = surface_->SwapBuffers(); 2471 gfx::SwapResult result = surface_->SwapBuffers();
2467 if (result == gfx::SwapResult::SWAP_FAILED) { 2472 if (result == gfx::SwapResult::SWAP_FAILED) {
2468 LOG(ERROR) << "Context lost because SwapBuffers failed."; 2473 LOG(ERROR) << "Context lost because SwapBuffers failed.";
2469 } 2474 }
2470 // TODO(geofflang): force the context loss? 2475 // TODO(geofflang): force the context loss?
2471 return error::kNoError; 2476 return error::kNoError;
2472 } 2477 }
2473 2478
2474 error::Error GLES2DecoderPassthroughImpl::DoGetMaxValueInBufferCHROMIUM( 2479 error::Error GLES2DecoderPassthroughImpl::DoGetMaxValueInBufferCHROMIUM(
2475 GLuint buffer_id, 2480 GLuint buffer_id,
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
3322 GLuint texture, 3327 GLuint texture,
3323 GLboolean promotion_hint, 3328 GLboolean promotion_hint,
3324 GLint display_x, 3329 GLint display_x,
3325 GLint display_y) { 3330 GLint display_y) {
3326 NOTIMPLEMENTED(); 3331 NOTIMPLEMENTED();
3327 return error::kNoError; 3332 return error::kNoError;
3328 } 3333 }
3329 3334
3330 } // namespace gles2 3335 } // namespace gles2
3331 } // namespace gpu 3336 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698