summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpu/command_buffer/common/cmd_buffer_common.cc2
-rw-r--r--gpu/command_buffer/common/cmd_buffer_common.h2
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);