| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_GLES2_CMD_APPLY_FRAMEBUFFER_ATTACHMENT_CMAA_I
NTEL_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_APPLY_FRAMEBUFFER_ATTACHMENT_CMAA_I
NTEL_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_APPLY_FRAMEBUFFER_ATTACHMENT_CMAA_I
NTEL_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_APPLY_FRAMEBUFFER_ATTACHMENT_CMAA_I
NTEL_H_ |
| 7 | 7 |
| 8 #include "gpu/command_buffer/service/gl_utils.h" | 8 #include "gpu/command_buffer/service/gl_utils.h" |
| 9 #include "gpu/gpu_export.h" | 9 #include "gpu/gpu_export.h" |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 // Applies the CMAA algorithm to a texture. | 41 // Applies the CMAA algorithm to a texture. |
| 42 void ApplyCMAAEffectTexture(GLuint source_texture, | 42 void ApplyCMAAEffectTexture(GLuint source_texture, |
| 43 GLuint dest_texture, | 43 GLuint dest_texture, |
| 44 bool do_copy); | 44 bool do_copy); |
| 45 | 45 |
| 46 void OnSize(GLint width, GLint height); | 46 void OnSize(GLint width, GLint height); |
| 47 void ReleaseTextures(); | 47 void ReleaseTextures(); |
| 48 | 48 |
| 49 void CopyTexture(GLint dest); | 49 void CopyTexture(GLint source, GLint dest); |
| 50 GLuint CreateProgram(const char* defines, | 50 GLuint CreateProgram(const char* defines, |
| 51 const char* vs_source, | 51 const char* vs_source, |
| 52 const char* fs_source); | 52 const char* fs_source); |
| 53 GLuint CreateShader(GLenum type, const char* defines, const char* source); | 53 GLuint CreateShader(GLenum type, const char* defines, const char* source); |
| 54 | 54 |
| 55 bool initialized_; | 55 bool initialized_; |
| 56 bool textures_initialized_; | 56 bool textures_initialized_; |
| 57 bool is_in_gamma_correct_mode_; | 57 bool is_in_gamma_correct_mode_; |
| 58 bool supports_usampler_; | 58 bool supports_usampler_; |
| 59 bool supports_r8_image_; | 59 bool supports_r8_image_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 84 GLuint edges0_shader_result_rgba_texture_slot1_; | 84 GLuint edges0_shader_result_rgba_texture_slot1_; |
| 85 GLuint edges0_shader_target_texture_slot2_; | 85 GLuint edges0_shader_target_texture_slot2_; |
| 86 GLuint edges1_shader_result_edge_texture_; | 86 GLuint edges1_shader_result_edge_texture_; |
| 87 GLuint process_and_apply_shader_result_rgba_texture_slot1_; | 87 GLuint process_and_apply_shader_result_rgba_texture_slot1_; |
| 88 GLuint edges_combine_shader_result_edge_texture_; | 88 GLuint edges_combine_shader_result_edge_texture_; |
| 89 | 89 |
| 90 static const char vert_str_[]; | 90 static const char vert_str_[]; |
| 91 static const char cmaa_frag_s1_[]; | 91 static const char cmaa_frag_s1_[]; |
| 92 static const char cmaa_frag_s2_[]; | 92 static const char cmaa_frag_s2_[]; |
| 93 | 93 |
| 94 GLuint copy_to_framebuffer_shader_ = 0; |
| 95 static const char copy_frag_str_[]; |
| 96 |
| 94 DISALLOW_COPY_AND_ASSIGN(ApplyFramebufferAttachmentCMAAINTELResourceManager); | 97 DISALLOW_COPY_AND_ASSIGN(ApplyFramebufferAttachmentCMAAINTELResourceManager); |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 } // namespace gles2 | 100 } // namespace gles2 |
| 98 } // namespace gpu | 101 } // namespace gpu |
| 99 | 102 |
| 100 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_APPLY_FRAMEBUFFER_ATTACHMENT_CMA
A_INTEL_H_ | 103 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_APPLY_FRAMEBUFFER_ATTACHMENT_CMA
A_INTEL_H_ |
| OLD | NEW |