Index: gpu/command_buffer/service/gpu_processor.cc |
diff --git a/gpu/command_buffer/service/gpu_processor.cc b/gpu/command_buffer/service/gpu_processor.cc |
index 0968215138edbfdcc72c3dde9c0a06347e00b39b..c0953415a0e2ea730c62cef7094d6938f839c7b5 100644 |
--- a/gpu/command_buffer/service/gpu_processor.cc |
+++ b/gpu/command_buffer/service/gpu_processor.cc |
@@ -9,6 +9,25 @@ using ::base::SharedMemory; |
namespace gpu { |
+GPUProcessor::GPUProcessor(CommandBuffer* command_buffer) |
+ : command_buffer_(command_buffer), |
+ commands_per_update_(100) { |
+ DCHECK(command_buffer); |
+ decoder_.reset(gles2::GLES2Decoder::Create()); |
+ decoder_->set_engine(this); |
+} |
+ |
+GPUProcessor::GPUProcessor(CommandBuffer* command_buffer, |
+ gles2::GLES2Decoder* decoder, |
+ CommandParser* parser, |
+ int commands_per_update) |
+ : command_buffer_(command_buffer), |
+ commands_per_update_(commands_per_update) { |
+ DCHECK(command_buffer); |
+ decoder_.reset(decoder); |
+ parser_.reset(parser); |
+} |
+ |
GPUProcessor::~GPUProcessor() { |
} |
@@ -32,6 +51,8 @@ void GPUProcessor::ProcessCommands() { |
command_buffer_->SetParseError(parse_error); |
command_buffer_->RaiseErrorStatus(); |
return; |
+ case gpu::parse_error::kParseNoError: |
+ break; |
} |
++commands_processed; |