diff options
author | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-02 00:08:31 +0000 |
---|---|---|
committer | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-02 00:08:31 +0000 |
commit | de5a6120e503610edd884d1f62b7d32906d97709 (patch) | |
tree | 8606cbb7a8007f398680c821155af17a1d70d535 /gpu/command_buffer | |
parent | 0d9d4513509b7185d16861d039c6502c06258409 (diff) | |
download | chromium_src-de5a6120e503610edd884d1f62b7d32906d97709.zip chromium_src-de5a6120e503610edd884d1f62b7d32906d97709.tar.gz chromium_src-de5a6120e503610edd884d1f62b7d32906d97709.tar.bz2 |
Moved the initialization of static variable outside the class declaration. Necessary to make gcc happy.
Review URL: http://codereview.chromium.org/567005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer')
-rw-r--r-- | gpu/command_buffer/common/cmd_buffer_common.cc | 2 | ||||
-rw-r--r-- | gpu/command_buffer/common/cmd_buffer_common.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gpu/command_buffer/common/cmd_buffer_common.cc b/gpu/command_buffer/common/cmd_buffer_common.cc index 2e9fab5..936d67c 100644 --- a/gpu/command_buffer/common/cmd_buffer_common.cc +++ b/gpu/command_buffer/common/cmd_buffer_common.cc @@ -8,6 +8,8 @@ #include "gpu/command_buffer/common/cmd_buffer_common.h" namespace gpu { +const int32 CommandHeader::kMaxSize = (1 << 21) - 1; + namespace cmd { const char* GetCommandName(CommandId command_id) { diff --git a/gpu/command_buffer/common/cmd_buffer_common.h b/gpu/command_buffer/common/cmd_buffer_common.h index 5b23620..7ae59e7 100644 --- a/gpu/command_buffer/common/cmd_buffer_common.h +++ b/gpu/command_buffer/common/cmd_buffer_common.h @@ -38,7 +38,7 @@ struct CommandHeader { Uint32 size:21; Uint32 command:11; - static const int32 kMaxSize = (1 << 21) - 1; + static const int32 kMaxSize; void Init(uint32 _command, int32 _size) { DCHECK_LE(_size, kMaxSize); |