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

Unified Diff: core/cross/renderer.h

Issue 210005: Rewrote full-screen support on Windows. O3D now always creates its own... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 3 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 | « core/cross/gl/renderer_gl.cc ('k') | core/cross/renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/cross/renderer.h
===================================================================
--- core/cross/renderer.h (revision 26426)
+++ core/cross/renderer.h (working copy)
@@ -213,19 +213,30 @@
// Handles the plugin resize event.
virtual void Resize(int width, int height) = 0;
- // Turns fullscreen display on or off.
+ // Turns fullscreen display on.
// Parameters:
- // fullscreen: true for fullscreen, false for in-plugin display
// display: a platform-specific display identifier
- // mode_id: a mode returned by GetDisplayModes, for fullscreen use. Ignored
- // in non-fullscreen mode.
+ // mode_id: a mode returned by GetDisplayModes
// Returns true on success, false on failure.
- // TODO: Make this pure virtual once it's implemented everywhere.
- virtual bool SetFullscreen(bool fullscreen, const DisplayWindow& display,
- int mode_id) {
+ // TODO(o3d): Make this pure virtual once it's implemented everywhere.
+ virtual bool GoFullscreen(const DisplayWindow& display,
+ int mode_id) {
return false;
}
+ // Cancels fullscreen display. Restores rendering to windowed mode
+ // with the given width and height.
+ // Parameters:
+ // display: a platform-specific display identifier
+ // width: the width to which to restore windowed rendering
+ // height: the height to which to restore windowed rendering
+ // Returns true on success, false on failure.
+ // TODO(o3d): Make this pure virtual once it's implemented everywhere.
+ virtual bool CancelFullscreen(const DisplayWindow& display,
+ int width, int height) {
+ return false;
+ }
+
// Tells whether we're currently displayed fullscreen or not.
virtual bool fullscreen() const { return false; }
@@ -532,6 +543,11 @@
write_mask_ = mask & 0xF;
}
+ // Indicates whether this Renderer has yet presented to the screen.
+ bool presented_once() {
+ return presented_once_;
+ }
+
protected:
typedef vector_map<String, StateHandler*> StateHandlerMap;
typedef std::vector<ParamVector> ParamVectorArray;
@@ -748,6 +764,9 @@
// Whether the backbuffer has been cleared this frame.
bool back_buffer_cleared_;
+ // Whether we have ever completed a call to Present().
+ bool presented_once_;
+
DISALLOW_COPY_AND_ASSIGN(Renderer);
};
« no previous file with comments | « core/cross/gl/renderer_gl.cc ('k') | core/cross/renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698