| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 bool use_virtualized_gl_context, | 76 bool use_virtualized_gl_context, |
| 77 int32 route_id, | 77 int32 route_id, |
| 78 int32 surface_id, | 78 int32 surface_id, |
| 79 GpuWatchdog* watchdog, | 79 GpuWatchdog* watchdog, |
| 80 bool software, | 80 bool software, |
| 81 const GURL& active_url); | 81 const GURL& active_url); |
| 82 | 82 |
| 83 virtual ~GpuCommandBufferStub(); | 83 virtual ~GpuCommandBufferStub(); |
| 84 | 84 |
| 85 // IPC::Listener implementation: | 85 // IPC::Listener implementation: |
| 86 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 86 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 87 | 87 |
| 88 // IPC::Sender implementation: | 88 // IPC::Sender implementation: |
| 89 virtual bool Send(IPC::Message* msg) OVERRIDE; | 89 virtual bool Send(IPC::Message* msg) override; |
| 90 | 90 |
| 91 // GpuMemoryManagerClient implementation: | 91 // GpuMemoryManagerClient implementation: |
| 92 virtual gfx::Size GetSurfaceSize() const OVERRIDE; | 92 virtual gfx::Size GetSurfaceSize() const override; |
| 93 virtual gpu::gles2::MemoryTracker* GetMemoryTracker() const OVERRIDE; | 93 virtual gpu::gles2::MemoryTracker* GetMemoryTracker() const override; |
| 94 virtual void SetMemoryAllocation( | 94 virtual void SetMemoryAllocation( |
| 95 const gpu::MemoryAllocation& allocation) OVERRIDE; | 95 const gpu::MemoryAllocation& allocation) override; |
| 96 virtual void SuggestHaveFrontBuffer(bool suggest_have_frontbuffer) OVERRIDE; | 96 virtual void SuggestHaveFrontBuffer(bool suggest_have_frontbuffer) override; |
| 97 virtual bool GetTotalGpuMemory(uint64* bytes) OVERRIDE; | 97 virtual bool GetTotalGpuMemory(uint64* bytes) override; |
| 98 | 98 |
| 99 // Whether this command buffer can currently handle IPC messages. | 99 // Whether this command buffer can currently handle IPC messages. |
| 100 bool IsScheduled(); | 100 bool IsScheduled(); |
| 101 | 101 |
| 102 // If the command buffer is pre-empted and cannot process commands. | 102 // If the command buffer is pre-empted and cannot process commands. |
| 103 bool IsPreempted() const { | 103 bool IsPreempted() const { |
| 104 return scheduler_.get() && scheduler_->IsPreempted(); | 104 return scheduler_.get() && scheduler_->IsPreempted(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 // Whether there are commands in the buffer that haven't been processed. | 107 // Whether there are commands in the buffer that haven't been processed. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 size_t total_gpu_memory_; | 276 size_t total_gpu_memory_; |
| 277 scoped_ptr<WaitForCommandState> wait_for_token_; | 277 scoped_ptr<WaitForCommandState> wait_for_token_; |
| 278 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 278 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
| 279 | 279 |
| 280 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 280 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 281 }; | 281 }; |
| 282 | 282 |
| 283 } // namespace content | 283 } // namespace content |
| 284 | 284 |
| 285 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 285 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |