| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |