| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 6 #define CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // IPC::Channel::Listener implementation: | 43 // IPC::Channel::Listener implementation: |
| 44 virtual void OnMessageReceived(const IPC::Message& message); | 44 virtual void OnMessageReceived(const IPC::Message& message); |
| 45 | 45 |
| 46 // IPC::Message::Sender implementation: | 46 // IPC::Message::Sender implementation: |
| 47 virtual bool Send(IPC::Message* msg); | 47 virtual bool Send(IPC::Message* msg); |
| 48 | 48 |
| 49 // Get the GLContext associated with this object. | 49 // Get the GLContext associated with this object. |
| 50 gpu::GPUProcessor* processor() const { return processor_.get(); } | 50 gpu::GPUProcessor* processor() const { return processor_.get(); } |
| 51 | 51 |
| 52 // Identifies the various GpuCommandBufferStubs in the GPU process belonging |
| 53 // to the same renderer process. |
| 52 int32 route_id() const { return route_id_; } | 54 int32 route_id() const { return route_id_; } |
| 53 | 55 |
| 56 // Identifies the various render views in the renderer process. |
| 57 int32 renderer_route_id() const { return renderer_id_; } |
| 58 |
| 54 #if defined(OS_WIN) | 59 #if defined(OS_WIN) |
| 55 // Called only by the compositor window's window proc | 60 // Called only by the compositor window's window proc |
| 56 void OnCompositorWindowPainted(); | 61 void OnCompositorWindowPainted(); |
| 57 #endif // defined(OS_WIN) | 62 #endif // defined(OS_WIN) |
| 58 | 63 |
| 59 #if defined(OS_MACOSX) | 64 #if defined(OS_MACOSX) |
| 60 // Called only by the GpuChannel. | 65 // Called only by the GpuChannel. |
| 61 void AcceleratedSurfaceBuffersSwapped(uint64 swap_buffers_count); | 66 void AcceleratedSurfaceBuffersSwapped(uint64 swap_buffers_count); |
| 62 #endif // defined(OS_MACOSX) | 67 #endif // defined(OS_MACOSX) |
| 63 | 68 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 117 |
| 113 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 118 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
| 114 scoped_ptr<gpu::GPUProcessor> processor_; | 119 scoped_ptr<gpu::GPUProcessor> processor_; |
| 115 | 120 |
| 116 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 121 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 117 }; | 122 }; |
| 118 | 123 |
| 119 #endif // defined(ENABLE_GPU) | 124 #endif // defined(ENABLE_GPU) |
| 120 | 125 |
| 121 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 126 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |