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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 2738213003: Revert of cmaa, gpu: use R8 image texture when GL_NV_image_formats is available. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 17430 matching lines...) Expand 10 before | Expand all | Expand 10 after
17441 glApplyFramebufferAttachmentCMAAINTEL(); 17441 glApplyFramebufferAttachmentCMAAINTEL();
17442 } else { 17442 } else {
17443 // Defer initializing the CopyTextureCHROMIUMResourceManager until it is 17443 // Defer initializing the CopyTextureCHROMIUMResourceManager until it is
17444 // needed because it takes ??s of milliseconds to initialize. 17444 // needed because it takes ??s of milliseconds to initialize.
17445 if (!apply_framebuffer_attachment_cmaa_intel_.get()) { 17445 if (!apply_framebuffer_attachment_cmaa_intel_.get()) {
17446 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER( 17446 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER(
17447 "glApplyFramebufferAttachmentCMAAINTEL"); 17447 "glApplyFramebufferAttachmentCMAAINTEL");
17448 apply_framebuffer_attachment_cmaa_intel_.reset( 17448 apply_framebuffer_attachment_cmaa_intel_.reset(
17449 new ApplyFramebufferAttachmentCMAAINTELResourceManager()); 17449 new ApplyFramebufferAttachmentCMAAINTELResourceManager());
17450 apply_framebuffer_attachment_cmaa_intel_->Initialize(this); 17450 apply_framebuffer_attachment_cmaa_intel_->Initialize(this);
17451 RestoreCurrentFramebufferBindings();
17451 if (LOCAL_PEEK_GL_ERROR("glApplyFramebufferAttachmentCMAAINTEL") != 17452 if (LOCAL_PEEK_GL_ERROR("glApplyFramebufferAttachmentCMAAINTEL") !=
17452 GL_NO_ERROR) 17453 GL_NO_ERROR)
17453 return; 17454 return;
17454 } 17455 }
17455 static const char kFunctionName[] = 17456 static const char kFunctionName[] =
17456 "glApplyScreenSpaceAntialiasingCHROMIUM"; 17457 "glApplyScreenSpaceAntialiasingCHROMIUM";
17457 if (!InitializeCopyTextureCHROMIUM(kFunctionName)) 17458 if (!InitializeCopyTextureCHROMIUM(kFunctionName))
17458 return; 17459 return;
17459 for (uint32_t i = 0; i < group_->max_draw_buffers(); ++i) { 17460 for (uint32_t i = 0; i < group_->max_draw_buffers(); ++i) {
17460 const Framebuffer::Attachment* attachment = 17461 const Framebuffer::Attachment* attachment =
(...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after
19334 } 19335 }
19335 19336
19336 // Include the auto-generated part of this file. We split this because it means 19337 // Include the auto-generated part of this file. We split this because it means
19337 // we can easily edit the non-auto generated parts right here in this file 19338 // we can easily edit the non-auto generated parts right here in this file
19338 // instead of having to edit some template or the code generator. 19339 // instead of having to edit some template or the code generator.
19339 #include "base/macros.h" 19340 #include "base/macros.h"
19340 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19341 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19341 19342
19342 } // namespace gles2 19343 } // namespace gles2
19343 } // namespace gpu 19344 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698