| 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 <limits.h> | 7 #include <limits.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1870 TextureRef* dest_texture_ref); | 1870 TextureRef* dest_texture_ref); |
| 1871 | 1871 |
| 1872 void RenderWarning(const char* filename, int line, const std::string& msg); | 1872 void RenderWarning(const char* filename, int line, const std::string& msg); |
| 1873 void PerformanceWarning( | 1873 void PerformanceWarning( |
| 1874 const char* filename, int line, const std::string& msg); | 1874 const char* filename, int line, const std::string& msg); |
| 1875 | 1875 |
| 1876 const FeatureInfo::FeatureFlags& features() const { | 1876 const FeatureInfo::FeatureFlags& features() const { |
| 1877 return feature_info_->feature_flags(); | 1877 return feature_info_->feature_flags(); |
| 1878 } | 1878 } |
| 1879 | 1879 |
| 1880 const GpuDriverBugWorkarounds& workarounds() const { | 1880 const FeatureInfo::Workarounds& workarounds() const { |
| 1881 return feature_info_->workarounds(); | 1881 return feature_info_->workarounds(); |
| 1882 } | 1882 } |
| 1883 | 1883 |
| 1884 bool ShouldDeferDraws() { | 1884 bool ShouldDeferDraws() { |
| 1885 return !offscreen_target_frame_buffer_.get() && | 1885 return !offscreen_target_frame_buffer_.get() && |
| 1886 framebuffer_state_.bound_draw_framebuffer.get() == NULL && | 1886 framebuffer_state_.bound_draw_framebuffer.get() == NULL && |
| 1887 surface_->DeferDraws(); | 1887 surface_->DeferDraws(); |
| 1888 } | 1888 } |
| 1889 | 1889 |
| 1890 bool ShouldDeferReads() { | 1890 bool ShouldDeferReads() { |
| (...skipping 11053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12944 return error::kNoError; | 12944 return error::kNoError; |
| 12945 } | 12945 } |
| 12946 | 12946 |
| 12947 error::Error GLES2DecoderImpl::HandleGetRequestableExtensionsCHROMIUM( | 12947 error::Error GLES2DecoderImpl::HandleGetRequestableExtensionsCHROMIUM( |
| 12948 uint32_t immediate_data_size, | 12948 uint32_t immediate_data_size, |
| 12949 const void* cmd_data) { | 12949 const void* cmd_data) { |
| 12950 const gles2::cmds::GetRequestableExtensionsCHROMIUM& c = | 12950 const gles2::cmds::GetRequestableExtensionsCHROMIUM& c = |
| 12951 *static_cast<const gles2::cmds::GetRequestableExtensionsCHROMIUM*>( | 12951 *static_cast<const gles2::cmds::GetRequestableExtensionsCHROMIUM*>( |
| 12952 cmd_data); | 12952 cmd_data); |
| 12953 Bucket* bucket = CreateBucket(c.bucket_id); | 12953 Bucket* bucket = CreateBucket(c.bucket_id); |
| 12954 scoped_refptr<FeatureInfo> info(new FeatureInfo(workarounds())); | 12954 scoped_refptr<FeatureInfo> info(new FeatureInfo()); |
| 12955 DisallowedFeatures disallowed_features = feature_info_->disallowed_features(); | 12955 DisallowedFeatures disallowed_features = feature_info_->disallowed_features(); |
| 12956 disallowed_features.AllowExtensions(); | 12956 disallowed_features.AllowExtensions(); |
| 12957 info->Initialize(feature_info_->context_type(), disallowed_features); | 12957 info->Initialize(feature_info_->context_type(), disallowed_features); |
| 12958 bucket->SetFromString(info->extensions().c_str()); | 12958 bucket->SetFromString(info->extensions().c_str()); |
| 12959 return error::kNoError; | 12959 return error::kNoError; |
| 12960 } | 12960 } |
| 12961 | 12961 |
| 12962 error::Error GLES2DecoderImpl::HandleRequestExtensionCHROMIUM( | 12962 error::Error GLES2DecoderImpl::HandleRequestExtensionCHROMIUM( |
| 12963 uint32_t immediate_data_size, | 12963 uint32_t immediate_data_size, |
| 12964 const void* cmd_data) { | 12964 const void* cmd_data) { |
| (...skipping 3527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16492 } | 16492 } |
| 16493 | 16493 |
| 16494 // Include the auto-generated part of this file. We split this because it means | 16494 // Include the auto-generated part of this file. We split this because it means |
| 16495 // we can easily edit the non-auto generated parts right here in this file | 16495 // we can easily edit the non-auto generated parts right here in this file |
| 16496 // instead of having to edit some template or the code generator. | 16496 // instead of having to edit some template or the code generator. |
| 16497 #include "base/macros.h" | 16497 #include "base/macros.h" |
| 16498 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 16498 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 16499 | 16499 |
| 16500 } // namespace gles2 | 16500 } // namespace gles2 |
| 16501 } // namespace gpu | 16501 } // namespace gpu |
| OLD | NEW |