| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 const gpu::gles2::FeatureInfo* GetFeatureInfo() const; | 149 const gpu::gles2::FeatureInfo* GetFeatureInfo() const; |
| 150 | 150 |
| 151 uint64 GetMemoryUsage() const; | 151 uint64 GetMemoryUsage() const; |
| 152 | 152 |
| 153 void SendSwapBuffersCompleted( | 153 void SendSwapBuffersCompleted( |
| 154 const std::vector<ui::LatencyInfo>& latency_info, | 154 const std::vector<ui::LatencyInfo>& latency_info, |
| 155 gfx::SwapResult result); | 155 gfx::SwapResult result); |
| 156 void SendUpdateVSyncParameters(base::TimeTicks timebase, | 156 void SendUpdateVSyncParameters(base::TimeTicks timebase, |
| 157 base::TimeDelta interval); | 157 base::TimeDelta interval); |
| 158 void CreateStreamTexture(int32 image_id, int32 stream_id, bool* succeeded); |
| 158 | 159 |
| 159 private: | 160 private: |
| 160 GpuMemoryManager* GetMemoryManager() const; | 161 GpuMemoryManager* GetMemoryManager() const; |
| 161 bool MakeCurrent(); | 162 bool MakeCurrent(); |
| 162 void Destroy(); | 163 void Destroy(); |
| 163 | 164 |
| 164 // Cleans up and sends reply if OnInitialize failed. | 165 // Cleans up and sends reply if OnInitialize failed. |
| 165 void OnInitializeFailed(IPC::Message* reply_message); | 166 void OnInitializeFailed(IPC::Message* reply_message); |
| 166 | 167 |
| 167 // Message handlers: | 168 // Message handlers: |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 size_t total_gpu_memory_; | 289 size_t total_gpu_memory_; |
| 289 scoped_ptr<WaitForCommandState> wait_for_token_; | 290 scoped_ptr<WaitForCommandState> wait_for_token_; |
| 290 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 291 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
| 291 | 292 |
| 292 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 293 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 293 }; | 294 }; |
| 294 | 295 |
| 295 } // namespace content | 296 } // namespace content |
| 296 | 297 |
| 297 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 298 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |