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

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

Issue 8512005: Plumb through EGL_NV_post_sub_buffer and GLX_MESA_copy_sub_buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 5659 matching lines...) Expand 10 before | Expand all | Expand 10 after
5670 unpack_alignment_ = param; 5670 unpack_alignment_ = param;
5671 break; 5671 break;
5672 default: 5672 default:
5673 // Validation should have prevented us from getting here. 5673 // Validation should have prevented us from getting here.
5674 NOTREACHED(); 5674 NOTREACHED();
5675 break; 5675 break;
5676 } 5676 }
5677 return error::kNoError; 5677 return error::kNoError;
5678 } 5678 }
5679 5679
5680 error::Error GLES2DecoderImpl::HandlePostSubBufferCHROMIUM(
5681 uint32 immediate_data_size, const gles2::PostSubBufferCHROMIUM& c) {
5682 DCHECK(surface_->SupportsPostSubBuffer());
piman 2011/11/10 21:14:47 I think this needs to be validated, not checked, c
jonathan.backer 2011/11/10 21:40:32 Done.
5683 TRACE_EVENT0("gpu", "GLES2DecoderImpl::HandlePostSubBufferCHROMIUM");
5684 if (surface_->PostSubBuffer(c.x, c.y, c.width, c.height))
5685 return error::kNoError;
5686 else
5687 return error::kLostContext;
5688 }
5689
5680 error::Error GLES2DecoderImpl::GetAttribLocationHelper( 5690 error::Error GLES2DecoderImpl::GetAttribLocationHelper(
5681 GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset, 5691 GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset,
5682 const std::string& name_str) { 5692 const std::string& name_str) {
5683 if (!StringIsValidForGLES(name_str.c_str())) { 5693 if (!StringIsValidForGLES(name_str.c_str())) {
5684 SetGLError(GL_INVALID_VALUE, "glGetAttribLocation: Invalid character"); 5694 SetGLError(GL_INVALID_VALUE, "glGetAttribLocation: Invalid character");
5685 return error::kNoError; 5695 return error::kNoError;
5686 } 5696 }
5687 ProgramManager::ProgramInfo* info = GetProgramInfoNotShader( 5697 ProgramManager::ProgramInfo* info = GetProgramInfoNotShader(
5688 client_id, "glGetAttribLocation"); 5698 client_id, "glGetAttribLocation");
5689 if (!info) { 5699 if (!info) {
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
7400 return error::kNoError; 7410 return error::kNoError;
7401 } 7411 }
7402 7412
7403 // Include the auto-generated part of this file. We split this because it means 7413 // Include the auto-generated part of this file. We split this because it means
7404 // we can easily edit the non-auto generated parts right here in this file 7414 // we can easily edit the non-auto generated parts right here in this file
7405 // instead of having to edit some template or the code generator. 7415 // instead of having to edit some template or the code generator.
7406 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 7416 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
7407 7417
7408 } // namespace gles2 7418 } // namespace gles2
7409 } // namespace gpu 7419 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698