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

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

Issue 2752953002: Reland cmaa, gpu: use R8 image texture when GL_NV_image_formats is available. (Closed)
Patch Set: diff 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 17585 matching lines...) Expand 10 before | Expand all | Expand 10 after
17596 glApplyFramebufferAttachmentCMAAINTEL(); 17596 glApplyFramebufferAttachmentCMAAINTEL();
17597 } else { 17597 } else {
17598 // Defer initializing the CopyTextureCHROMIUMResourceManager until it is 17598 // Defer initializing the CopyTextureCHROMIUMResourceManager until it is
17599 // needed because it takes ??s of milliseconds to initialize. 17599 // needed because it takes ??s of milliseconds to initialize.
17600 if (!apply_framebuffer_attachment_cmaa_intel_.get()) { 17600 if (!apply_framebuffer_attachment_cmaa_intel_.get()) {
17601 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER( 17601 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER(
17602 "glApplyFramebufferAttachmentCMAAINTEL"); 17602 "glApplyFramebufferAttachmentCMAAINTEL");
17603 apply_framebuffer_attachment_cmaa_intel_.reset( 17603 apply_framebuffer_attachment_cmaa_intel_.reset(
17604 new ApplyFramebufferAttachmentCMAAINTELResourceManager()); 17604 new ApplyFramebufferAttachmentCMAAINTELResourceManager());
17605 apply_framebuffer_attachment_cmaa_intel_->Initialize(this); 17605 apply_framebuffer_attachment_cmaa_intel_->Initialize(this);
17606 RestoreCurrentFramebufferBindings();
17607 if (LOCAL_PEEK_GL_ERROR("glApplyFramebufferAttachmentCMAAINTEL") != 17606 if (LOCAL_PEEK_GL_ERROR("glApplyFramebufferAttachmentCMAAINTEL") !=
17608 GL_NO_ERROR) 17607 GL_NO_ERROR)
17609 return; 17608 return;
17610 } 17609 }
17611 static const char kFunctionName[] = 17610 static const char kFunctionName[] =
17612 "glApplyScreenSpaceAntialiasingCHROMIUM"; 17611 "glApplyScreenSpaceAntialiasingCHROMIUM";
17613 if (!InitializeCopyTextureCHROMIUM(kFunctionName)) 17612 if (!InitializeCopyTextureCHROMIUM(kFunctionName))
17614 return; 17613 return;
17615 for (uint32_t i = 0; i < group_->max_draw_buffers(); ++i) { 17614 for (uint32_t i = 0; i < group_->max_draw_buffers(); ++i) {
17616 const Framebuffer::Attachment* attachment = 17615 const Framebuffer::Attachment* attachment =
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after
19494 } 19493 }
19495 19494
19496 // Include the auto-generated part of this file. We split this because it means 19495 // Include the auto-generated part of this file. We split this because it means
19497 // we can easily edit the non-auto generated parts right here in this file 19496 // we can easily edit the non-auto generated parts right here in this file
19498 // instead of having to edit some template or the code generator. 19497 // instead of having to edit some template or the code generator.
19499 #include "base/macros.h" 19498 #include "base/macros.h"
19500 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19499 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19501 19500
19502 } // namespace gles2 19501 } // namespace gles2
19503 } // namespace gpu 19502 } // 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