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

Unified Diff: gpu/demos/framework/demo.cc

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
Index: gpu/demos/framework/demo.cc
===================================================================
--- gpu/demos/framework/demo.cc (revision 94518)
+++ gpu/demos/framework/demo.cc (working copy)
@@ -14,11 +14,6 @@
Demo::~Demo() {
}
-void Demo::InitWindowSize(int width, int height) {
- width_ = width;
- height_ = height;
-}
-
void Demo::Draw() {
float elapsed_sec = 0.0f;
clock_t current_time = clock();
@@ -35,5 +30,10 @@
return false;
}
+void Demo::Resize(int width, int height) {
+ width_ = width;
+ height_ = height;
+}
+
} // namespace demos
} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698