| 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   // Sends an IPC message with the new state of surface visibility | 
 |   74   bool SetSurfaceVisible(bool visible); | 
 |   75  | 
|   73   // Reparent a command buffer. TODO(apatrick): going forward, the notion of |   76   // Reparent a command buffer. TODO(apatrick): going forward, the notion of | 
|   74   // the parent / child relationship between command buffers is going away in |   77   // 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 |   78   // favor of the notion of surfaces that can be drawn to in one command buffer | 
|   76   // and bound as a texture in any other. |   79   // and bound as a texture in any other. | 
|   77   virtual bool SetParent(CommandBufferProxy* parent_command_buffer, |   80   virtual bool SetParent(CommandBufferProxy* parent_command_buffer, | 
|   78                          uint32 parent_texture_id); |   81                          uint32 parent_texture_id); | 
|   79  |   82  | 
|   80   void SetChannelErrorCallback(const base::Closure& callback); |   83   void SetChannelErrorCallback(const base::Closure& callback); | 
|   81  |   84  | 
|   82   // Set a task that will be invoked the next time the window becomes invalid |   85   // 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_; |  137   base::Closure notify_repaint_task_; | 
|  135  |  138  | 
|  136   base::Closure channel_error_callback_; |  139   base::Closure channel_error_callback_; | 
|  137  |  140  | 
|  138   DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); |  141   DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); | 
|  139 }; |  142 }; | 
|  140  |  143  | 
|  141 #endif  // ENABLE_GPU |  144 #endif  // ENABLE_GPU | 
|  142  |  145  | 
|  143 #endif  // CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ |  146 #endif  // CONTENT_RENDERER_GPU_COMMAND_BUFFER_PROXY_H_ | 
| OLD | NEW |