diff options
author | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-02 00:24:17 +0000 |
---|---|---|
committer | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-02 00:24:17 +0000 |
commit | c90c0e3e83d8167cd067a2414a1677f4d6e1c7ff (patch) | |
tree | a135351ce1b42fbc5832323a3034aa6ce8058a67 /o3d/core/cross/client_info.h | |
parent | 16d12570ba2e4697f772aba9b6da45ce5f4b13e1 (diff) | |
download | chromium_src-c90c0e3e83d8167cd067a2414a1677f4d6e1c7ff.zip chromium_src-c90c0e3e83d8167cd067a2414a1677f4d6e1c7ff.tar.gz chromium_src-c90c0e3e83d8167cd067a2414a1677f4d6e1c7ff.tar.bz2 |
Adds GET_VERSION IMC message.
Review URL: http://codereview.chromium.org/180071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/core/cross/client_info.h')
-rw-r--r-- | o3d/core/cross/client_info.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/o3d/core/cross/client_info.h b/o3d/core/cross/client_info.h index e8b24a9..40cda3c 100644 --- a/o3d/core/cross/client_info.h +++ b/o3d/core/cross/client_info.h @@ -44,13 +44,7 @@ namespace o3d { // This class is used to report infomation about the client.
class ClientInfo {
public:
- ClientInfo()
- : num_objects_(0),
- texture_memory_used_(0),
- buffer_memory_used_(0),
- software_renderer_(false),
- non_power_of_two_textures_(false) {
- }
+ ClientInfo();
// The number of objects the client is currently tracking.
int num_objects() const {
@@ -83,6 +77,11 @@ class ClientInfo { return non_power_of_two_textures_;
}
+ // Gets the O3D version.
+ const String& version() const {
+ return version_;
+ }
+
private:
friend class ClientInfoManager;
@@ -91,6 +90,7 @@ class ClientInfo { int buffer_memory_used_;
bool software_renderer_;
bool non_power_of_two_textures_;
+ String version_;
};
// A class to manage the client info so other classes can easily look it up.
|