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 #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 Loading... |
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(); | |
17452 if (LOCAL_PEEK_GL_ERROR("glApplyFramebufferAttachmentCMAAINTEL") != | 17451 if (LOCAL_PEEK_GL_ERROR("glApplyFramebufferAttachmentCMAAINTEL") != |
17453 GL_NO_ERROR) | 17452 GL_NO_ERROR) |
17454 return; | 17453 return; |
17455 } | 17454 } |
17456 static const char kFunctionName[] = | 17455 static const char kFunctionName[] = |
17457 "glApplyScreenSpaceAntialiasingCHROMIUM"; | 17456 "glApplyScreenSpaceAntialiasingCHROMIUM"; |
17458 if (!InitializeCopyTextureCHROMIUM(kFunctionName)) | 17457 if (!InitializeCopyTextureCHROMIUM(kFunctionName)) |
17459 return; | 17458 return; |
17460 for (uint32_t i = 0; i < group_->max_draw_buffers(); ++i) { | 17459 for (uint32_t i = 0; i < group_->max_draw_buffers(); ++i) { |
17461 const Framebuffer::Attachment* attachment = | 17460 const Framebuffer::Attachment* attachment = |
(...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19335 } | 19334 } |
19336 | 19335 |
19337 // Include the auto-generated part of this file. We split this because it means | 19336 // Include the auto-generated part of this file. We split this because it means |
19338 // we can easily edit the non-auto generated parts right here in this file | 19337 // we can easily edit the non-auto generated parts right here in this file |
19339 // instead of having to edit some template or the code generator. | 19338 // instead of having to edit some template or the code generator. |
19340 #include "base/macros.h" | 19339 #include "base/macros.h" |
19341 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19340 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
19342 | 19341 |
19343 } // namespace gles2 | 19342 } // namespace gles2 |
19344 } // namespace gpu | 19343 } // namespace gpu |
OLD | NEW |