Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ |
| 6 #define CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ | 6 #define CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 virtual void DestroyTransferBuffer(int32 id); | 63 virtual void DestroyTransferBuffer(int32 id); |
| 64 virtual gpu::Buffer GetTransferBuffer(int32 handle); | 64 virtual gpu::Buffer GetTransferBuffer(int32 handle); |
| 65 virtual void SetToken(int32 token); | 65 virtual void SetToken(int32 token); |
| 66 virtual void SetParseError(gpu::error::Error error); | 66 virtual void SetParseError(gpu::error::Error error); |
| 67 virtual void SetContextLostReason(gpu::error::ContextLostReason reason); | 67 virtual void SetContextLostReason(gpu::error::ContextLostReason reason); |
| 68 | 68 |
| 69 // Invoke the task when the channel has been flushed. Takes care of deleting | 69 // Invoke the task when the channel has been flushed. Takes care of deleting |
| 70 // the task whether the echo succeeds or not. | 70 // the task whether the echo succeeds or not. |
| 71 bool Echo(const base::Closure& callback); | 71 bool Echo(const base::Closure& callback); |
| 72 | 72 |
| 73 bool SetSurfaceVisible(bool visible); | |
|
mmocny
2011/10/13 21:48:43
TODO: add a comment here
| |
| 74 | |
| 73 // Reparent a command buffer. TODO(apatrick): going forward, the notion of | 75 // Reparent a command buffer. TODO(apatrick): going forward, the notion of |
| 74 // the parent / child relationship between command buffers is going away in | 76 // the parent / child relationship between command buffers is going away in |
| 75 // favor of the notion of surfaces that can be drawn to in one command buffer | 77 // favor of the notion of surfaces that can be drawn to in one command buffer |
| 76 // and bound as a texture in any other. | 78 // and bound as a texture in any other. |
| 77 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, | 79 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, |
| 78 uint32 parent_texture_id); | 80 uint32 parent_texture_id); |
| 79 | 81 |
| 80 void SetChannelErrorCallback(const base::Closure& callback); | 82 void SetChannelErrorCallback(const base::Closure& callback); |
| 81 | 83 |
| 82 // Set a task that will be invoked the next time the window becomes invalid | 84 // Set a task that will be invoked the next time the window becomes invalid |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 base::Closure notify_repaint_task_; | 136 base::Closure notify_repaint_task_; |
| 135 | 137 |
| 136 base::Closure channel_error_callback_; | 138 base::Closure channel_error_callback_; |
| 137 | 139 |
| 138 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); | 140 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); |
| 139 }; | 141 }; |
| 140 | 142 |
| 141 #endif // ENABLE_GPU | 143 #endif // ENABLE_GPU |
| 142 | 144 |
| 143 #endif // CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ | 145 #endif // CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ |
| OLD | NEW |