| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_PROCESSOR_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_PROCESSOR_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_PROCESSOR_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_PROCESSOR_H_ |
| 7 | 7 |
| 8 #include "app/surface/transport_dib.h" | 8 #include "app/surface/transport_dib.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
| 13 #include "base/task.h" | 13 #include "base/task.h" |
| 14 #include "gfx/native_widget_types.h" | 14 #include "gfx/native_widget_types.h" |
| 15 #include "gfx/size.h" | 15 #include "gfx/size.h" |
| 16 #include "gpu/command_buffer/common/command_buffer.h" | 16 #include "gpu/command_buffer/common/command_buffer.h" |
| 17 #include "gpu/command_buffer/service/cmd_buffer_engine.h" | 17 #include "gpu/command_buffer/service/cmd_buffer_engine.h" |
| 18 #include "gpu/command_buffer/service/cmd_parser.h" | 18 #include "gpu/command_buffer/service/cmd_parser.h" |
| 19 #include "gpu/command_buffer/service/context_group.h" | 19 #include "gpu/command_buffer/service/context_group.h" |
| 20 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 20 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 21 | 21 |
| 22 #if defined(OS_MACOSX) && !defined(UNIT_TEST) | 22 #if defined(OS_MACOSX) |
| 23 #include "app/surface/accelerated_surface_mac.h" | 23 #include "app/surface/accelerated_surface_mac.h" |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 namespace gfx { | 26 namespace gfx { |
| 27 class GLContext; | 27 class GLContext; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace gpu { | 30 namespace gpu { |
| 31 | 31 |
| 32 // This class processes commands in a command buffer. It is event driven and | 32 // This class processes commands in a command buffer. It is event driven and |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // through the ProcessCommands callback. | 96 // through the ProcessCommands callback. |
| 97 CommandBuffer* command_buffer_; | 97 CommandBuffer* command_buffer_; |
| 98 | 98 |
| 99 int commands_per_update_; | 99 int commands_per_update_; |
| 100 | 100 |
| 101 gles2::ContextGroup group_; | 101 gles2::ContextGroup group_; |
| 102 scoped_ptr<gles2::GLES2Decoder> decoder_; | 102 scoped_ptr<gles2::GLES2Decoder> decoder_; |
| 103 scoped_ptr<CommandParser> parser_; | 103 scoped_ptr<CommandParser> parser_; |
| 104 scoped_ptr<gfx::GLContext> context_; | 104 scoped_ptr<gfx::GLContext> context_; |
| 105 | 105 |
| 106 #if defined(OS_MACOSX) && !defined(UNIT_TEST) | 106 #if defined(OS_MACOSX) |
| 107 scoped_ptr<AcceleratedSurface> surface_; | 107 scoped_ptr<AcceleratedSurface> surface_; |
| 108 #endif | 108 #endif |
| 109 | 109 |
| 110 ScopedRunnableMethodFactory<GPUProcessor> method_factory_; | 110 ScopedRunnableMethodFactory<GPUProcessor> method_factory_; |
| 111 scoped_ptr<Callback0::Type> wrapped_swap_buffers_callback_; | 111 scoped_ptr<Callback0::Type> wrapped_swap_buffers_callback_; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace gpu | 114 } // namespace gpu |
| 115 | 115 |
| 116 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PROCESSOR_H_ | 116 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PROCESSOR_H_ |
| OLD | NEW |