| 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 23 matching lines...) Expand all Loading... |
| 34 const std::string& allowed_extensions, | 34 const std::string& allowed_extensions, |
| 35 const std::vector<int32>& attribs, | 35 const std::vector<int32>& attribs, |
| 36 uint32 parent_texture_id, | 36 uint32 parent_texture_id, |
| 37 int32 route_id, | 37 int32 route_id, |
| 38 int32 renderer_id, | 38 int32 renderer_id, |
| 39 int32 render_view_id); | 39 int32 render_view_id); |
| 40 | 40 |
| 41 virtual ~GpuCommandBufferStub(); | 41 virtual ~GpuCommandBufferStub(); |
| 42 | 42 |
| 43 // IPC::Channel::Listener implementation: | 43 // IPC::Channel::Listener implementation: |
| 44 virtual void OnMessageReceived(const IPC::Message& message); | 44 virtual bool 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 | 52 // Identifies the various GpuCommandBufferStubs in the GPU process belonging |
| 53 // to the same renderer process. | 53 // to the same renderer process. |
| 54 int32 route_id() const { return route_id_; } | 54 int32 route_id() const { return route_id_; } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 118 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
| 119 scoped_ptr<gpu::GPUProcessor> processor_; | 119 scoped_ptr<gpu::GPUProcessor> processor_; |
| 120 | 120 |
| 121 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 121 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 #endif // defined(ENABLE_GPU) | 124 #endif // defined(ENABLE_GPU) |
| 125 | 125 |
| 126 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 126 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |