| 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |    5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 
|    6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |    6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 
|    7  |    7  | 
|    8 #include <set> |    8 #include <set> | 
|    9 #include <string> |    9 #include <string> | 
|   10 #include "base/containers/hash_tables.h" |   10 #include "base/containers/hash_tables.h" | 
|   11 #include "base/memory/ref_counted.h" |   11 #include "base/memory/ref_counted.h" | 
|   12 #include "base/sys_info.h" |   12 #include "base/sys_info.h" | 
|   13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |   13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 
|   14 #include "gpu/command_buffer/service/gles2_cmd_validation.h" |   14 #include "gpu/command_buffer/service/gles2_cmd_validation.h" | 
|   15 #include "gpu/config/gpu_driver_bug_workaround_type.h" |   15 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 
|   16 #include "gpu/gpu_export.h" |   16 #include "gpu/gpu_export.h" | 
|   17  |   17  | 
|   18 class CommandLine; |   18 class CommandLine; | 
|   19  |   19  | 
|   20 namespace gpu { |   20 namespace gpu { | 
|   21 namespace gles2 { |   21 namespace gles2 { | 
|   22  |   22  | 
|   23 // FeatureInfo records the features that are available for a ContextGroup. |   23 // FeatureInfo records the features that are available for a ContextGroup. | 
|   24 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> { |   24 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> { | 
|   25  public: |   25  public: | 
|   26   struct FeatureFlags { |   26   struct FeatureFlags { | 
|   27     FeatureFlags(); |   27     FeatureFlags(); | 
|   28  |   28  | 
 |   29     bool chromium_color_buffer_float_rgba; | 
 |   30     bool chromium_color_buffer_float_rgb; | 
|   29     bool chromium_framebuffer_multisample; |   31     bool chromium_framebuffer_multisample; | 
|   30     // Use glBlitFramebuffer() and glRenderbufferStorageMultisample() with |   32     // Use glBlitFramebuffer() and glRenderbufferStorageMultisample() with | 
|   31     // GL_EXT_framebuffer_multisample-style semantics, since they are exposed |   33     // GL_EXT_framebuffer_multisample-style semantics, since they are exposed | 
|   32     // as core GL functions on this implementation. |   34     // as core GL functions on this implementation. | 
|   33     bool use_core_framebuffer_multisample; |   35     bool use_core_framebuffer_multisample; | 
|   34     bool multisampled_render_to_texture; |   36     bool multisampled_render_to_texture; | 
|   35     // Use the IMG GLenum values and functions rather than EXT. |   37     // Use the IMG GLenum values and functions rather than EXT. | 
|   36     bool use_img_for_multisampled_render_to_texture; |   38     bool use_img_for_multisampled_render_to_texture; | 
|   37     bool oes_standard_derivatives; |   39     bool oes_standard_derivatives; | 
|   38     bool oes_egl_image_external; |   40     bool oes_egl_image_external; | 
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  134   // Flags for Workarounds. |  136   // Flags for Workarounds. | 
|  135   Workarounds workarounds_; |  137   Workarounds workarounds_; | 
|  136  |  138  | 
|  137   DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |  139   DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 
|  138 }; |  140 }; | 
|  139  |  141  | 
|  140 }  // namespace gles2 |  142 }  // namespace gles2 | 
|  141 }  // namespace gpu |  143 }  // namespace gpu | 
|  142  |  144  | 
|  143 #endif  // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |  145 #endif  // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 
| OLD | NEW |