Index: gpu/command_buffer/service/gpu_processor_win.cc |
=================================================================== |
--- gpu/command_buffer/service/gpu_processor_win.cc (revision 35510) |
+++ gpu/command_buffer/service/gpu_processor_win.cc (working copy) |
@@ -10,6 +10,25 @@ |
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); |
+} |
+ |
bool GPUProcessor::Initialize(gfx::PluginWindowHandle handle) { |
DCHECK(handle); |