| 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 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 TextureRef* dest_texture_ref); | 1875 TextureRef* dest_texture_ref); |
| 1876 | 1876 |
| 1877 void RenderWarning(const char* filename, int line, const std::string& msg); | 1877 void RenderWarning(const char* filename, int line, const std::string& msg); |
| 1878 void PerformanceWarning( | 1878 void PerformanceWarning( |
| 1879 const char* filename, int line, const std::string& msg); | 1879 const char* filename, int line, const std::string& msg); |
| 1880 | 1880 |
| 1881 const FeatureInfo::FeatureFlags& features() const { | 1881 const FeatureInfo::FeatureFlags& features() const { |
| 1882 return feature_info_->feature_flags(); | 1882 return feature_info_->feature_flags(); |
| 1883 } | 1883 } |
| 1884 | 1884 |
| 1885 const GpuDriverBugWorkarounds& workarounds() const { | 1885 const FeatureInfo::Workarounds& workarounds() const { |
| 1886 return feature_info_->workarounds(); | 1886 return feature_info_->workarounds(); |
| 1887 } | 1887 } |
| 1888 | 1888 |
| 1889 bool ShouldDeferDraws() { | 1889 bool ShouldDeferDraws() { |
| 1890 return !offscreen_target_frame_buffer_.get() && | 1890 return !offscreen_target_frame_buffer_.get() && |
| 1891 framebuffer_state_.bound_draw_framebuffer.get() == NULL && | 1891 framebuffer_state_.bound_draw_framebuffer.get() == NULL && |
| 1892 surface_->DeferDraws(); | 1892 surface_->DeferDraws(); |
| 1893 } | 1893 } |
| 1894 | 1894 |
| 1895 bool ShouldDeferReads() { | 1895 bool ShouldDeferReads() { |
| (...skipping 11081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12977 return error::kNoError; | 12977 return error::kNoError; |
| 12978 } | 12978 } |
| 12979 | 12979 |
| 12980 error::Error GLES2DecoderImpl::HandleGetRequestableExtensionsCHROMIUM( | 12980 error::Error GLES2DecoderImpl::HandleGetRequestableExtensionsCHROMIUM( |
| 12981 uint32_t immediate_data_size, | 12981 uint32_t immediate_data_size, |
| 12982 const void* cmd_data) { | 12982 const void* cmd_data) { |
| 12983 const gles2::cmds::GetRequestableExtensionsCHROMIUM& c = | 12983 const gles2::cmds::GetRequestableExtensionsCHROMIUM& c = |
| 12984 *static_cast<const gles2::cmds::GetRequestableExtensionsCHROMIUM*>( | 12984 *static_cast<const gles2::cmds::GetRequestableExtensionsCHROMIUM*>( |
| 12985 cmd_data); | 12985 cmd_data); |
| 12986 Bucket* bucket = CreateBucket(c.bucket_id); | 12986 Bucket* bucket = CreateBucket(c.bucket_id); |
| 12987 scoped_refptr<FeatureInfo> info(new FeatureInfo(workarounds())); | 12987 scoped_refptr<FeatureInfo> info(new FeatureInfo()); |
| 12988 DisallowedFeatures disallowed_features = feature_info_->disallowed_features(); | 12988 DisallowedFeatures disallowed_features = feature_info_->disallowed_features(); |
| 12989 disallowed_features.AllowExtensions(); | 12989 disallowed_features.AllowExtensions(); |
| 12990 info->Initialize(feature_info_->context_type(), disallowed_features); | 12990 info->Initialize(feature_info_->context_type(), disallowed_features); |
| 12991 bucket->SetFromString(info->extensions().c_str()); | 12991 bucket->SetFromString(info->extensions().c_str()); |
| 12992 return error::kNoError; | 12992 return error::kNoError; |
| 12993 } | 12993 } |
| 12994 | 12994 |
| 12995 error::Error GLES2DecoderImpl::HandleRequestExtensionCHROMIUM( | 12995 error::Error GLES2DecoderImpl::HandleRequestExtensionCHROMIUM( |
| 12996 uint32_t immediate_data_size, | 12996 uint32_t immediate_data_size, |
| 12997 const void* cmd_data) { | 12997 const void* cmd_data) { |
| (...skipping 3527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16525 } | 16525 } |
| 16526 | 16526 |
| 16527 // Include the auto-generated part of this file. We split this because it means | 16527 // Include the auto-generated part of this file. We split this because it means |
| 16528 // we can easily edit the non-auto generated parts right here in this file | 16528 // we can easily edit the non-auto generated parts right here in this file |
| 16529 // instead of having to edit some template or the code generator. | 16529 // instead of having to edit some template or the code generator. |
| 16530 #include "base/macros.h" | 16530 #include "base/macros.h" |
| 16531 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 16531 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 16532 | 16532 |
| 16533 } // namespace gles2 | 16533 } // namespace gles2 |
| 16534 } // namespace gpu | 16534 } // namespace gpu |
| OLD | NEW |