| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "mojo/services/gles2/command_buffer_impl.h" | 5 #include "mojo/services/gles2/command_buffer_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 | 9 |
| 10 #include "gpu/command_buffer/common/constants.h" | 10 #include "gpu/command_buffer/common/constants.h" |
| 11 #include "gpu/command_buffer/service/command_buffer_service.h" | 11 #include "gpu/command_buffer/service/command_buffer_service.h" |
| 12 #include "gpu/command_buffer/service/context_group.h" | 12 #include "gpu/command_buffer/service/context_group.h" |
| 13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 14 #include "gpu/command_buffer/service/gpu_control_service.h" | 14 #include "gpu/command_buffer/service/gpu_control_service.h" |
| 15 #include "gpu/command_buffer/service/gpu_scheduler.h" | 15 #include "gpu/command_buffer/service/gpu_scheduler.h" |
| 16 #include "gpu/command_buffer/service/image_manager.h" | 16 #include "gpu/command_buffer/service/image_manager.h" |
| 17 #include "gpu/command_buffer/service/mailbox_manager.h" | 17 #include "gpu/command_buffer/service/mailbox_manager.h" |
| 18 #include "gpu/command_buffer/service/memory_tracking.h" | 18 #include "gpu/command_buffer/service/memory_tracking.h" |
| 19 #include "mojo/public/bindings/allocation_scope.h" | 19 #include "mojo/public/cpp/bindings/allocation_scope.h" |
| 20 #include "mojo/services/gles2/command_buffer_type_conversions.h" | 20 #include "mojo/services/gles2/command_buffer_type_conversions.h" |
| 21 #include "ui/gl/gl_context.h" | 21 #include "ui/gl/gl_context.h" |
| 22 #include "ui/gl/gl_surface.h" | 22 #include "ui/gl/gl_surface.h" |
| 23 | 23 |
| 24 namespace mojo { | 24 namespace mojo { |
| 25 namespace services { | 25 namespace services { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 class MemoryTrackerStub : public gpu::gles2::MemoryTracker { | 29 class MemoryTrackerStub : public gpu::gles2::MemoryTracker { |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 void CommandBufferImpl::OnParseError() { | 175 void CommandBufferImpl::OnParseError() { |
| 176 gpu::CommandBuffer::State state = command_buffer_->GetState(); | 176 gpu::CommandBuffer::State state = command_buffer_->GetState(); |
| 177 client_->LostContext(state.context_lost_reason); | 177 client_->LostContext(state.context_lost_reason); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void CommandBufferImpl::DrawAnimationFrame() { client_->DrawAnimationFrame(); } | 180 void CommandBufferImpl::DrawAnimationFrame() { client_->DrawAnimationFrame(); } |
| 181 | 181 |
| 182 } // namespace services | 182 } // namespace services |
| 183 } // namespace mojo | 183 } // namespace mojo |
| OLD | NEW |