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

Unified Diff: gpu/demos/framework/demo.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 | « no previous file | gpu/demos/framework/demo.cc » ('j') | gpu/demos/pepper_gpu_demo.html » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/demos/framework/demo.h
===================================================================
--- gpu/demos/framework/demo.h (revision 94518)
+++ gpu/demos/framework/demo.h (working copy)
@@ -25,9 +25,6 @@
// html page where demo is running.
virtual const wchar_t* Title() const = 0;
- // Initializes the size of the window on which this demo object will render.
- void InitWindowSize(int width, int height);
-
// This function is called by the framework to initialize the OpenGL state
// required by this demo. When this function is called, it is assumed that
// a rendering context has already been created and made current.
@@ -37,6 +34,10 @@
// continuously. Unanimated demos are only drawn when the window is invalid.
virtual bool IsAnimated();
+ // This function is called by the network to notify demo that window
+ // surface has been resized.
+ void Resize(int width, int height);
+
// This function is called by the framework to perform OpenGL rendering.
// When this function is called, it is assumed that the rendering context
// has been made current.
« no previous file with comments | « no previous file | gpu/demos/framework/demo.cc » ('j') | gpu/demos/pepper_gpu_demo.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698