summaryrefslogtreecommitdiffstats
path: root/o3d/core
diff options
context:
space:
mode:
authorgman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-12 23:09:29 +0000
committergman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-12 23:09:29 +0000
commit634ab7f997c79bb8fd7fda9ea0295a296e30d0a5 (patch)
tree34e3d352021ead39a3ea6228f6e4388429634382 /o3d/core
parent0189bbd4cc569eaec4c6664109659c32fed8e4b7 (diff)
downloadchromium_src-634ab7f997c79bb8fd7fda9ea0295a296e30d0a5.zip
chromium_src-634ab7f997c79bb8fd7fda9ea0295a296e30d0a5.tar.gz
chromium_src-634ab7f997c79bb8fd7fda9ea0295a296e30d0a5.tar.bz2
Add a DLOG error to the command buffer and remove
a little of the macro magic. Also, fix the build. Renderer_cb was missing some functions. I seems like it would be really good if we could add something like this to the non-debug version because developers need an easy way to check for errors. Maybe these errors can go to the chrome error console or something, at least in chrome. Review URL: http://codereview.chromium.org/267061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28753 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/core')
-rw-r--r--o3d/core/cross/command_buffer/renderer_cb.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/o3d/core/cross/command_buffer/renderer_cb.h b/o3d/core/cross/command_buffer/renderer_cb.h
index 6a12c72..643e05e 100644
--- a/o3d/core/cross/command_buffer/renderer_cb.h
+++ b/o3d/core/cross/command_buffer/renderer_cb.h
@@ -36,6 +36,7 @@
#define O3D_CORE_CROSS_COMMAND_BUFFER_RENDERER_CB_H_
#include "core/cross/precompile.h"
+#include <vector>
#include "core/cross/renderer.h"
#include "command_buffer/common/cross/rpc.h"
#include "command_buffer/common/cross/resource.h"
@@ -79,6 +80,39 @@ class RendererCB : public Renderer {
// Destroy() should be called before Init() is called again.
virtual void Destroy();
+ // Overridden from Renderer.
+ virtual bool GoFullscreen(const DisplayWindow& display,
+ int mode_id) {
+ // TODO(gman): implement this.
+ return false;
+ }
+
+ // Overridden from Renderer.
+ virtual bool CancelFullscreen(const DisplayWindow& display,
+ int width, int height) {
+ // TODO(gman): implement this.
+ return false;
+ }
+
+ // Tells whether we're currently displayed fullscreen or not.
+ virtual bool fullscreen() const {
+ // TODO(gman): implement this.
+ return false;
+ }
+
+ // Get a vector of the available fullscreen display modes.
+ // Clears *modes on error.
+ virtual void GetDisplayModes(std::vector<DisplayMode> *modes) {
+ // TODO(gman): implement this.
+ }
+
+ // Get a single fullscreen display mode by id.
+ // Returns true on success, false on error.
+ virtual bool GetDisplayMode(int id, DisplayMode *mode) {
+ // TODO(gman): implement this.
+ return false;
+ }
+
// Creates a StreamBank, returning a platform specific implementation class.
virtual StreamBank::Ref CreateStreamBank();