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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.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: "" 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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "../client/gles2_implementation.h" 7 #include "../client/gles2_implementation.h"
8 8
9 #include <set> 9 #include <set>
10 #include <queue> 10 #include <queue>
(...skipping 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after
2656 return *result; 2656 return *result;
2657 } 2657 }
2658 2658
2659 void GLES2Implementation::DestroyStreamTextureCHROMIUM(GLuint texture) { 2659 void GLES2Implementation::DestroyStreamTextureCHROMIUM(GLuint texture) {
2660 GPU_CLIENT_LOG("[" << this << "] DestroyStreamTextureCHROMIUM(" 2660 GPU_CLIENT_LOG("[" << this << "] DestroyStreamTextureCHROMIUM("
2661 << texture << ")"); 2661 << texture << ")");
2662 TRACE_EVENT0("gpu", "GLES2::DestroyStreamTextureCHROMIUM"); 2662 TRACE_EVENT0("gpu", "GLES2::DestroyStreamTextureCHROMIUM");
2663 helper_->DestroyStreamTextureCHROMIUM(texture); 2663 helper_->DestroyStreamTextureCHROMIUM(texture);
2664 } 2664 }
2665 2665
2666 void GLES2Implementation::PostSubBufferCHROMIUM(
2667 GLint x, GLint y, GLint width, GLint height) {
2668 GPU_CLIENT_LOG("[" << this << "] PostSubBufferCHROMIUM("
2669 << x << ", " << y << ", " << width << ", " << height << ")");
2670 TRACE_EVENT0("gpu", "GLES2::PostSubBufferCHROMIUM");
2671 helper_->PostSubBufferCHROMIUM(x, y, width, height);
2672 }
apatrick_chromium 2011/11/10 19:33:16 I think the flush should go here. The EGL_NV_post_
jonathan.backer 2011/11/10 21:00:25 Done.
2673
2666 } // namespace gles2 2674 } // namespace gles2
2667 } // namespace gpu 2675 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698