| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 #include <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "gpu/command_buffer/service/gpu_preferences.h" | 9 #include "gpu/command_buffer/service/gpu_preferences.h" |
| 10 #include "gpu/ipc/service/gpu_channel.h" | 10 #include "gpu/ipc/service/gpu_channel.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 error::ContextLostReason reason, | 42 error::ContextLostReason reason, |
| 43 const GURL& active_url) override; | 43 const GURL& active_url) override; |
| 44 void GpuMemoryUmaStats(const GPUMemoryUmaStats& params) override; | 44 void GpuMemoryUmaStats(const GPUMemoryUmaStats& params) override; |
| 45 void StoreShaderToDisk(int32_t client_id, | 45 void StoreShaderToDisk(int32_t client_id, |
| 46 const std::string& key, | 46 const std::string& key, |
| 47 const std::string& shader) override; | 47 const std::string& shader) override; |
| 48 #if defined(OS_MACOSX) | 48 #if defined(OS_MACOSX) |
| 49 void SendAcceleratedSurfaceBuffersSwapped( | 49 void SendAcceleratedSurfaceBuffersSwapped( |
| 50 gpu::SurfaceHandle surface_handle, | 50 gpu::SurfaceHandle surface_handle, |
| 51 CAContextID ca_context_id, | 51 CAContextID ca_context_id, |
| 52 bool fullscreen_low_power_ca_context_valid, |
| 53 CAContextID fullscreen_low_power_ca_context_id, |
| 52 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, | 54 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, |
| 53 const gfx::Size& size, | 55 const gfx::Size& size, |
| 54 float scale_factor, | 56 float scale_factor, |
| 55 std::vector<ui::LatencyInfo> latency_info) override; | 57 std::vector<ui::LatencyInfo> latency_info) override; |
| 56 #endif | 58 #endif |
| 57 #if defined(OS_WIN) | 59 #if defined(OS_WIN) |
| 58 void SendAcceleratedSurfaceCreatedChildWindow( | 60 void SendAcceleratedSurfaceCreatedChildWindow( |
| 59 SurfaceHandle parent_window, | 61 SurfaceHandle parent_window, |
| 60 SurfaceHandle child_window) override; | 62 SurfaceHandle child_window) override; |
| 61 #endif | 63 #endif |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 private: | 127 private: |
| 126 GpuPreferences gpu_preferences_; | 128 GpuPreferences gpu_preferences_; |
| 127 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; | 129 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; |
| 128 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; | 130 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; |
| 129 std::unique_ptr<SyncPointManager> sync_point_manager_; | 131 std::unique_ptr<SyncPointManager> sync_point_manager_; |
| 130 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; | 132 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; |
| 131 std::unique_ptr<GpuChannelManager> channel_manager_; | 133 std::unique_ptr<GpuChannelManager> channel_manager_; |
| 132 }; | 134 }; |
| 133 | 135 |
| 134 } // namespace gpu | 136 } // namespace gpu |
| OLD | NEW |