| 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_COMMON_GPU_GPU_CHANNEL_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // IPC::Message::Sender implementation: | 68 // IPC::Message::Sender implementation: |
| 69 virtual bool Send(IPC::Message* msg); | 69 virtual bool Send(IPC::Message* msg); |
| 70 | 70 |
| 71 void CreateViewCommandBuffer( | 71 void CreateViewCommandBuffer( |
| 72 gfx::PluginWindowHandle window, | 72 gfx::PluginWindowHandle window, |
| 73 int32 render_view_id, | 73 int32 render_view_id, |
| 74 const GPUCreateCommandBufferConfig& init_params, | 74 const GPUCreateCommandBufferConfig& init_params, |
| 75 int32* route_id); | 75 int32* route_id); |
| 76 | 76 |
| 77 void ViewResized(int32 command_buffer_route_id); |
| 78 |
| 77 #if defined(OS_MACOSX) | 79 #if defined(OS_MACOSX) |
| 78 virtual void AcceleratedSurfaceBuffersSwapped( | 80 virtual void AcceleratedSurfaceBuffersSwapped( |
| 79 int32 route_id, uint64 swap_buffers_count); | 81 int32 route_id, uint64 swap_buffers_count); |
| 80 void DestroyCommandBufferByViewId(int32 render_view_id); | 82 void DestroyCommandBufferByViewId(int32 render_view_id); |
| 81 #endif | 83 #endif |
| 82 | 84 |
| 83 void LoseAllContexts(); | 85 void LoseAllContexts(); |
| 84 | 86 |
| 85 // Get the TransportTexture by ID. | 87 // Get the TransportTexture by ID. |
| 86 TransportTexture* GetTransportTexture(int32 route_id); | 88 TransportTexture* GetTransportTexture(int32 route_id); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 TransportTextureMap transport_textures_; | 146 TransportTextureMap transport_textures_; |
| 145 | 147 |
| 146 bool log_messages_; // True if we should log sent and received messages. | 148 bool log_messages_; // True if we should log sent and received messages. |
| 147 gpu::gles2::DisallowedExtensions disallowed_extensions_; | 149 gpu::gles2::DisallowedExtensions disallowed_extensions_; |
| 148 GpuWatchdog* watchdog_; | 150 GpuWatchdog* watchdog_; |
| 149 | 151 |
| 150 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 152 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 151 }; | 153 }; |
| 152 | 154 |
| 153 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 155 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |