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

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

Issue 2139613003: Revert of gpu: Use a VAO as required by the core profile in ClearFramebuffer (patchset #2 id:20001 … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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_clear_framebuffer.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 3380 matching lines...) Expand 10 before | Expand all | Expand 10 after
3391 glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT); 3391 glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT);
3392 } 3392 }
3393 3393
3394 if (feature_info_->workarounds().unbind_fbo_on_context_switch) { 3394 if (feature_info_->workarounds().unbind_fbo_on_context_switch) {
3395 context_->SetUnbindFboOnMakeCurrent(); 3395 context_->SetUnbindFboOnMakeCurrent();
3396 } 3396 }
3397 3397
3398 if (workarounds().gl_clear_broken) { 3398 if (workarounds().gl_clear_broken) {
3399 DCHECK(!clear_framebuffer_blit_.get()); 3399 DCHECK(!clear_framebuffer_blit_.get());
3400 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit"); 3400 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit");
3401 clear_framebuffer_blit_.reset( 3401 clear_framebuffer_blit_.reset(new ClearFramebufferResourceManager(this));
3402 new ClearFramebufferResourceManager(this, features()));
3403 if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR) 3402 if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR)
3404 return false; 3403 return false;
3405 } 3404 }
3406 3405
3407 return true; 3406 return true;
3408 } 3407 }
3409 3408
3410 Capabilities GLES2DecoderImpl::GetCapabilities() { 3409 Capabilities GLES2DecoderImpl::GetCapabilities() {
3411 DCHECK(initialized()); 3410 DCHECK(initialized());
3412 Capabilities caps; 3411 Capabilities caps;
(...skipping 13653 matching lines...) Expand 10 before | Expand all | Expand 10 after
17066 } 17065 }
17067 17066
17068 // Include the auto-generated part of this file. We split this because it means 17067 // Include the auto-generated part of this file. We split this because it means
17069 // we can easily edit the non-auto generated parts right here in this file 17068 // we can easily edit the non-auto generated parts right here in this file
17070 // instead of having to edit some template or the code generator. 17069 // instead of having to edit some template or the code generator.
17071 #include "base/macros.h" 17070 #include "base/macros.h"
17072 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 17071 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
17073 17072
17074 } // namespace gles2 17073 } // namespace gles2
17075 } // namespace gpu 17074 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698