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

Unified Diff: gpu/demos/simple_vertex_shader/main.cc

Issue 551011: Changed the signature of Application::Draw to accept elapsed time. It will be... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/demos/hello_triangle/main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/demos/simple_vertex_shader/main.cc
===================================================================
--- gpu/demos/simple_vertex_shader/main.cc (revision 36127)
+++ gpu/demos/simple_vertex_shader/main.cc (working copy)
@@ -19,7 +19,7 @@
bool Init();
protected:
- virtual void Draw();
+ virtual void Draw(float elapsed_sec);
private:
ESContext context_;
@@ -45,12 +45,13 @@
context_.width = width();
context_.height = height();
if (!svsInit(&context_)) return false;
- svsUpdate(&context_, 0.0f);
return true;
}
-void SimpleVertexShader::Draw() {
+void SimpleVertexShader::Draw(float elapsed_sec) {
+ svsUpdate(&context_, elapsed_sec);
+
svsDraw(&context_);
}
} // namespace gpu_demos
« no previous file with comments | « gpu/demos/hello_triangle/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698