Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h

Issue 2405893002: gpu, cmaa: reduce one-copy (Closed)
Patch Set: add helper comment Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h
diff --git a/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h b/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h
index 33e787dab385c7487e0eda7acb582e57e4d43a02..855e1e667d6b2519595faff70cb9685b4b587d34 100644
--- a/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h
+++ b/gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h
@@ -39,7 +39,9 @@ class GPU_EXPORT ApplyFramebufferAttachmentCMAAINTELResourceManager {
private:
// Applies the CMAA algorithm to a texture.
- void ApplyCMAAEffectTexture(GLuint source_texture, GLuint dest_texture);
+ void ApplyCMAAEffectTexture(GLuint source_texture,
+ GLuint dest_texture,
+ bool do_copy);
void OnSize(GLint width, GLint height);
void ReleaseTextures();
@@ -79,11 +81,11 @@ class GPU_EXPORT ApplyFramebufferAttachmentCMAAINTELResourceManager {
GLuint mini4_edge_texture_;
GLuint mini4_edge_depth_texture_;
- GLuint edges1_shader_result_texture_float4_slot1_;
- GLuint edges1_shader_result_texture_;
- GLuint edges_combine_shader_result_texture_float4_slot1_;
- GLuint process_and_apply_shader_result_texture_float4_slot1_;
- GLuint edges_combine_shader_result_texture_slot2_;
+ GLuint edges0_shader_result_rgba_texture_slot1_;
+ GLuint edges0_shader_target_texture_slot2_;
+ GLuint edges1_shader_result_edge_texture_;
+ GLuint process_and_apply_shader_result_rgba_texture_slot1_;
+ GLuint edges_combine_shader_result_edge_texture_;
static const char vert_str_[];
static const char cmaa_frag_s1_[];
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698