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 <cmath> | 10 #include <cmath> |
(...skipping 11945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11956 } | 11956 } |
11957 | 11957 |
11958 error::Error GLES2DecoderImpl::HandleGetRequestableExtensionsCHROMIUM( | 11958 error::Error GLES2DecoderImpl::HandleGetRequestableExtensionsCHROMIUM( |
11959 uint32 immediate_data_size, | 11959 uint32 immediate_data_size, |
11960 const void* cmd_data) { | 11960 const void* cmd_data) { |
11961 const gles2::cmds::GetRequestableExtensionsCHROMIUM& c = | 11961 const gles2::cmds::GetRequestableExtensionsCHROMIUM& c = |
11962 *static_cast<const gles2::cmds::GetRequestableExtensionsCHROMIUM*>( | 11962 *static_cast<const gles2::cmds::GetRequestableExtensionsCHROMIUM*>( |
11963 cmd_data); | 11963 cmd_data); |
11964 Bucket* bucket = CreateBucket(c.bucket_id); | 11964 Bucket* bucket = CreateBucket(c.bucket_id); |
11965 scoped_refptr<FeatureInfo> info(new FeatureInfo()); | 11965 scoped_refptr<FeatureInfo> info(new FeatureInfo()); |
11966 info->Initialize(disallowed_features_); | 11966 info->Initialize(context_type_, disallowed_features_); |
11967 bucket->SetFromString(info->extensions().c_str()); | 11967 bucket->SetFromString(info->extensions().c_str()); |
11968 return error::kNoError; | 11968 return error::kNoError; |
11969 } | 11969 } |
11970 | 11970 |
11971 error::Error GLES2DecoderImpl::HandleRequestExtensionCHROMIUM( | 11971 error::Error GLES2DecoderImpl::HandleRequestExtensionCHROMIUM( |
11972 uint32 immediate_data_size, | 11972 uint32 immediate_data_size, |
11973 const void* cmd_data) { | 11973 const void* cmd_data) { |
11974 const gles2::cmds::RequestExtensionCHROMIUM& c = | 11974 const gles2::cmds::RequestExtensionCHROMIUM& c = |
11975 *static_cast<const gles2::cmds::RequestExtensionCHROMIUM*>(cmd_data); | 11975 *static_cast<const gles2::cmds::RequestExtensionCHROMIUM*>(cmd_data); |
11976 Bucket* bucket = GetBucket(c.bucket_id); | 11976 Bucket* bucket = GetBucket(c.bucket_id); |
(...skipping 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15059 return error::kNoError; | 15059 return error::kNoError; |
15060 } | 15060 } |
15061 | 15061 |
15062 // Include the auto-generated part of this file. We split this because it means | 15062 // Include the auto-generated part of this file. We split this because it means |
15063 // we can easily edit the non-auto generated parts right here in this file | 15063 // we can easily edit the non-auto generated parts right here in this file |
15064 // instead of having to edit some template or the code generator. | 15064 // instead of having to edit some template or the code generator. |
15065 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 15065 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
15066 | 15066 |
15067 } // namespace gles2 | 15067 } // namespace gles2 |
15068 } // namespace gpu | 15068 } // namespace gpu |
OLD | NEW |