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 #include "ui/gl/gl_version_info.h" | 8 #include "ui/gl/gl_version_info.h" |
9 | 9 |
10 namespace gpu { | 10 namespace gpu { |
(...skipping 2480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2491 | 2491 |
2492 error::Error GLES2DecoderPassthroughImpl::DoSetDisjointValueSyncCHROMIUM( | 2492 error::Error GLES2DecoderPassthroughImpl::DoSetDisjointValueSyncCHROMIUM( |
2493 DisjointValueSync* sync) { | 2493 DisjointValueSync* sync) { |
2494 NOTIMPLEMENTED(); | 2494 NOTIMPLEMENTED(); |
2495 return error::kNoError; | 2495 return error::kNoError; |
2496 } | 2496 } |
2497 | 2497 |
2498 error::Error GLES2DecoderPassthroughImpl::DoInsertEventMarkerEXT( | 2498 error::Error GLES2DecoderPassthroughImpl::DoInsertEventMarkerEXT( |
2499 GLsizei length, | 2499 GLsizei length, |
2500 const char* marker) { | 2500 const char* marker) { |
2501 NOTIMPLEMENTED(); | 2501 if (!feature_info_->feature_flags().ext_debug_marker) { |
| 2502 return error::kUnknownCommand; |
| 2503 } |
| 2504 |
| 2505 glInsertEventMarkerEXT(length, marker); |
2502 return error::kNoError; | 2506 return error::kNoError; |
2503 } | 2507 } |
2504 | 2508 |
2505 error::Error GLES2DecoderPassthroughImpl::DoPushGroupMarkerEXT( | 2509 error::Error GLES2DecoderPassthroughImpl::DoPushGroupMarkerEXT( |
2506 GLsizei length, | 2510 GLsizei length, |
2507 const char* marker) { | 2511 const char* marker) { |
2508 NOTIMPLEMENTED(); | 2512 if (!feature_info_->feature_flags().ext_debug_marker) { |
| 2513 return error::kUnknownCommand; |
| 2514 } |
| 2515 |
| 2516 glPushGroupMarkerEXT(length, marker); |
2509 return error::kNoError; | 2517 return error::kNoError; |
2510 } | 2518 } |
2511 | 2519 |
2512 error::Error GLES2DecoderPassthroughImpl::DoPopGroupMarkerEXT() { | 2520 error::Error GLES2DecoderPassthroughImpl::DoPopGroupMarkerEXT() { |
2513 NOTIMPLEMENTED(); | 2521 if (!feature_info_->feature_flags().ext_debug_marker) { |
| 2522 return error::kUnknownCommand; |
| 2523 } |
| 2524 |
| 2525 glPopGroupMarkerEXT(); |
2514 return error::kNoError; | 2526 return error::kNoError; |
2515 } | 2527 } |
2516 | 2528 |
2517 error::Error GLES2DecoderPassthroughImpl::DoGenVertexArraysOES( | 2529 error::Error GLES2DecoderPassthroughImpl::DoGenVertexArraysOES( |
2518 GLsizei n, | 2530 GLsizei n, |
2519 volatile GLuint* arrays) { | 2531 volatile GLuint* arrays) { |
2520 return GenHelper( | 2532 return GenHelper( |
2521 n, arrays, &vertex_array_id_map_, | 2533 n, arrays, &vertex_array_id_map_, |
2522 [](GLsizei n, GLuint* arrays) { glGenVertexArraysOES(n, arrays); }); | 2534 [](GLsizei n, GLuint* arrays) { glGenVertexArraysOES(n, arrays); }); |
2523 } | 2535 } |
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3504 GLint x, | 3516 GLint x, |
3505 GLint y, | 3517 GLint y, |
3506 GLint width, | 3518 GLint width, |
3507 GLint height) { | 3519 GLint height) { |
3508 NOTIMPLEMENTED(); | 3520 NOTIMPLEMENTED(); |
3509 return error::kNoError; | 3521 return error::kNoError; |
3510 } | 3522 } |
3511 | 3523 |
3512 } // namespace gles2 | 3524 } // namespace gles2 |
3513 } // namespace gpu | 3525 } // namespace gpu |
OLD | NEW |