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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 11412262: gpu: Defer reads from default framebuffer when needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: do it in the generator Created 8 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 | Annotate | Revision Log
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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // This file is included by gles2_implementation.cc to define the 9 // This file is included by gles2_implementation.cc to define the
10 // GL api functions. 10 // GL api functions.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 return GL_FRAMEBUFFER_UNSUPPORTED; 110 return GL_FRAMEBUFFER_UNSUPPORTED;
111 } 111 }
112 *result = 0; 112 *result = 0;
113 helper_->CheckFramebufferStatus( 113 helper_->CheckFramebufferStatus(
114 target, GetResultShmId(), GetResultShmOffset()); 114 target, GetResultShmId(), GetResultShmOffset());
115 WaitForCmd(); 115 WaitForCmd();
116 GPU_CLIENT_LOG("returned " << *result); 116 GPU_CLIENT_LOG("returned " << *result);
117 return *result; 117 return *result;
118 } 118 }
119 119
120 void GLES2Implementation::Clear(GLbitfield mask) {
121 GPU_CLIENT_SINGLE_THREAD_CHECK();
122 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClear(" << mask << ")");
123 helper_->Clear(mask);
124 }
125
120 void GLES2Implementation::ClearColor( 126 void GLES2Implementation::ClearColor(
121 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { 127 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
122 GPU_CLIENT_SINGLE_THREAD_CHECK(); 128 GPU_CLIENT_SINGLE_THREAD_CHECK();
123 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearColor(" << red << ", " << gr een << ", " << blue << ", " << alpha << ")"); // NOLINT 129 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearColor(" << red << ", " << gr een << ", " << blue << ", " << alpha << ")"); // NOLINT
124 helper_->ClearColor(red, green, blue, alpha); 130 helper_->ClearColor(red, green, blue, alpha);
125 } 131 }
126 132
127 void GLES2Implementation::ClearDepthf(GLclampf depth) { 133 void GLES2Implementation::ClearDepthf(GLclampf depth) {
128 GPU_CLIENT_SINGLE_THREAD_CHECK(); 134 GPU_CLIENT_SINGLE_THREAD_CHECK();
129 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearDepthf(" << depth << ")"); 135 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearDepthf(" << depth << ")");
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 } 1520 }
1515 1521
1516 void GLES2Implementation::TraceEndCHROMIUM() { 1522 void GLES2Implementation::TraceEndCHROMIUM() {
1517 GPU_CLIENT_SINGLE_THREAD_CHECK(); 1523 GPU_CLIENT_SINGLE_THREAD_CHECK();
1518 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTraceEndCHROMIUM(" << ")"); 1524 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTraceEndCHROMIUM(" << ")");
1519 helper_->TraceEndCHROMIUM(); 1525 helper_->TraceEndCHROMIUM();
1520 } 1526 }
1521 1527
1522 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 1528 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
1523 1529
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698