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

Unified Diff: gpu/demos/gles2_book/example.h

Issue 7529009: Updated demo to use resizable plugin element. This exercises the new PPB_Graphics3D_Dev::Resize()... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/demos/framework/window.cc ('k') | gpu/demos/pepper_gpu_demo.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/demos/gles2_book/example.h
===================================================================
--- gpu/demos/gles2_book/example.h (revision 94518)
+++ gpu/demos/gles2_book/example.h (working copy)
@@ -51,8 +51,6 @@
// Note that update_func is optional.
assert(init_func_ && draw_func_ && shut_down_func_);
- context_.width = width();
- context_.height = height();
if (!init_func_(&context_)) return false;
return true;
}
@@ -69,6 +67,9 @@
}
virtual void Render(float elapsed_sec) {
+ context_.width = width();
+ context_.height = height();
+
if (update_func_) update_func_(&context_, elapsed_sec);
draw_func_(&context_);
}
« no previous file with comments | « gpu/demos/framework/window.cc ('k') | gpu/demos/pepper_gpu_demo.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698