OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <list> | 10 #include <list> |
(...skipping 9495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9506 int32 sync_shm_id = static_cast<int32>(c.sync_data_shm_id); | 9506 int32 sync_shm_id = static_cast<int32>(c.sync_data_shm_id); |
9507 uint32 sync_shm_offset = static_cast<uint32>(c.sync_data_shm_offset); | 9507 uint32 sync_shm_offset = static_cast<uint32>(c.sync_data_shm_offset); |
9508 | 9508 |
9509 switch (target) { | 9509 switch (target) { |
9510 case GL_COMMANDS_ISSUED_CHROMIUM: | 9510 case GL_COMMANDS_ISSUED_CHROMIUM: |
9511 case GL_LATENCY_QUERY_CHROMIUM: | 9511 case GL_LATENCY_QUERY_CHROMIUM: |
9512 case GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM: | 9512 case GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM: |
9513 case GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM: | 9513 case GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM: |
9514 case GL_GET_ERROR_QUERY_CHROMIUM: | 9514 case GL_GET_ERROR_QUERY_CHROMIUM: |
9515 break; | 9515 break; |
9516 case GL_COMMANDS_COMPLETED_CHROMIUM: | |
9517 if (!features().chromium_sync_query) { | |
9518 LOCAL_SET_GL_ERROR( | |
9519 GL_INVALID_OPERATION, "glBeginQueryEXT", | |
9520 "not enabled for commands completed queries"); | |
9521 return error::kNoError; | |
9522 } | |
9523 break; | |
9524 default: | 9516 default: |
9525 if (!features().occlusion_query_boolean) { | 9517 if (!features().occlusion_query_boolean) { |
9526 LOCAL_SET_GL_ERROR( | 9518 LOCAL_SET_GL_ERROR( |
9527 GL_INVALID_OPERATION, "glBeginQueryEXT", | 9519 GL_INVALID_OPERATION, "glBeginQueryEXT", |
9528 "not enabled for occlusion queries"); | 9520 "not enabled for occlusion queries"); |
9529 return error::kNoError; | 9521 return error::kNoError; |
9530 } | 9522 } |
9531 break; | 9523 break; |
9532 } | 9524 } |
9533 | 9525 |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10720 } | 10712 } |
10721 } | 10713 } |
10722 | 10714 |
10723 // Include the auto-generated part of this file. We split this because it means | 10715 // Include the auto-generated part of this file. We split this because it means |
10724 // we can easily edit the non-auto generated parts right here in this file | 10716 // we can easily edit the non-auto generated parts right here in this file |
10725 // instead of having to edit some template or the code generator. | 10717 // instead of having to edit some template or the code generator. |
10726 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10718 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
10727 | 10719 |
10728 } // namespace gles2 | 10720 } // namespace gles2 |
10729 } // namespace gpu | 10721 } // namespace gpu |
OLD | NEW |