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

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

Issue 238933003: Re-land: gpu: Add CHROMIUM_sync_query extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
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 9494 matching lines...) Expand 10 before | Expand all | Expand 10 after
9505 GLuint client_id = static_cast<GLuint>(c.id); 9505 GLuint client_id = static_cast<GLuint>(c.id);
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 case GL_COMMANDS_COMPLETED_CHROMIUM:
9515 break; 9516 break;
9516 default: 9517 default:
9517 if (!features().occlusion_query_boolean) { 9518 if (!features().occlusion_query_boolean) {
9518 LOCAL_SET_GL_ERROR( 9519 LOCAL_SET_GL_ERROR(
9519 GL_INVALID_OPERATION, "glBeginQueryEXT", 9520 GL_INVALID_OPERATION, "glBeginQueryEXT",
9520 "not enabled for occlusion queries"); 9521 "not enabled for occlusion queries");
9521 return error::kNoError; 9522 return error::kNoError;
9522 } 9523 }
9523 break; 9524 break;
9524 } 9525 }
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
10712 } 10713 }
10713 } 10714 }
10714 10715
10715 // Include the auto-generated part of this file. We split this because it means 10716 // Include the auto-generated part of this file. We split this because it means
10716 // we can easily edit the non-auto generated parts right here in this file 10717 // we can easily edit the non-auto generated parts right here in this file
10717 // instead of having to edit some template or the code generator. 10718 // instead of having to edit some template or the code generator.
10718 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10719 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10719 10720
10720 } // namespace gles2 10721 } // namespace gles2
10721 } // namespace gpu 10722 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698