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

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

Issue 2543123003: gpu, cmaa: improve |do_copy| condition logic (Closed)
Patch Set: use existing attachment->object_name() Created 4 years 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
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 17048 matching lines...) Expand 10 before | Expand all | Expand 10 after
17059 if (LOCAL_PEEK_GL_ERROR("glApplyFramebufferAttachmentCMAAINTEL") != 17059 if (LOCAL_PEEK_GL_ERROR("glApplyFramebufferAttachmentCMAAINTEL") !=
17060 GL_NO_ERROR) 17060 GL_NO_ERROR)
17061 return; 17061 return;
17062 } 17062 }
17063 static const char kFunctionName[] = 17063 static const char kFunctionName[] =
17064 "glApplyScreenSpaceAntialiasingCHROMIUM"; 17064 "glApplyScreenSpaceAntialiasingCHROMIUM";
17065 if (!InitializeCopyTextureCHROMIUM(kFunctionName)) 17065 if (!InitializeCopyTextureCHROMIUM(kFunctionName))
17066 return; 17066 return;
17067 apply_framebuffer_attachment_cmaa_intel_ 17067 apply_framebuffer_attachment_cmaa_intel_
17068 ->ApplyFramebufferAttachmentCMAAINTEL(this, bound_framebuffer, 17068 ->ApplyFramebufferAttachmentCMAAINTEL(this, bound_framebuffer,
17069 copy_texture_CHROMIUM_.get()); 17069 copy_texture_CHROMIUM_.get(),
17070 texture_manager());
17070 } 17071 }
17071 } 17072 }
17072 17073
17073 void GLES2DecoderImpl::DoInsertEventMarkerEXT( 17074 void GLES2DecoderImpl::DoInsertEventMarkerEXT(
17074 GLsizei length, const GLchar* marker) { 17075 GLsizei length, const GLchar* marker) {
17075 if (!marker) { 17076 if (!marker) {
17076 marker = ""; 17077 marker = "";
17077 } 17078 }
17078 debug_marker_manager_.SetMarker( 17079 debug_marker_manager_.SetMarker(
17079 length ? std::string(marker, length) : std::string(marker)); 17080 length ? std::string(marker, length) : std::string(marker));
(...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after
18931 } 18932 }
18932 18933
18933 // Include the auto-generated part of this file. We split this because it means 18934 // Include the auto-generated part of this file. We split this because it means
18934 // we can easily edit the non-auto generated parts right here in this file 18935 // we can easily edit the non-auto generated parts right here in this file
18935 // instead of having to edit some template or the code generator. 18936 // instead of having to edit some template or the code generator.
18936 #include "base/macros.h" 18937 #include "base/macros.h"
18937 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 18938 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
18938 18939
18939 } // namespace gles2 18940 } // namespace gles2
18940 } // namespace gpu 18941 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698