| 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 27 matching lines...) Expand all Loading... |
| 38 void DidCreateOffscreenContext(const GURL& active_url) override; | 38 void DidCreateOffscreenContext(const GURL& active_url) override; |
| 39 void DidDestroyChannel(int client_id) override; | 39 void DidDestroyChannel(int client_id) override; |
| 40 void DidDestroyOffscreenContext(const GURL& active_url) override; | 40 void DidDestroyOffscreenContext(const GURL& active_url) override; |
| 41 void DidLoseContext(bool offscreen, | 41 void DidLoseContext(bool offscreen, |
| 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) | |
| 49 void SendAcceleratedSurfaceBuffersSwapped( | |
| 50 gpu::SurfaceHandle surface_handle, | |
| 51 CAContextID ca_context_id, | |
| 52 bool fullscreen_low_power_ca_context_valid, | |
| 53 CAContextID fullscreen_low_power_ca_context_id, | |
| 54 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, | |
| 55 const gfx::Size& size, | |
| 56 float scale_factor, | |
| 57 std::vector<ui::LatencyInfo> latency_info) override; | |
| 58 #endif | |
| 59 #if defined(OS_WIN) | 48 #if defined(OS_WIN) |
| 60 void SendAcceleratedSurfaceCreatedChildWindow( | 49 void SendAcceleratedSurfaceCreatedChildWindow( |
| 61 SurfaceHandle parent_window, | 50 SurfaceHandle parent_window, |
| 62 SurfaceHandle child_window) override; | 51 SurfaceHandle child_window) override; |
| 63 #endif | 52 #endif |
| 64 | 53 |
| 65 DISALLOW_COPY_AND_ASSIGN(TestGpuChannelManagerDelegate); | 54 DISALLOW_COPY_AND_ASSIGN(TestGpuChannelManagerDelegate); |
| 66 }; | 55 }; |
| 67 | 56 |
| 68 class TestGpuChannelManager : public GpuChannelManager { | 57 class TestGpuChannelManager : public GpuChannelManager { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 private: | 116 private: |
| 128 GpuPreferences gpu_preferences_; | 117 GpuPreferences gpu_preferences_; |
| 129 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; | 118 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; |
| 130 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; | 119 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; |
| 131 std::unique_ptr<SyncPointManager> sync_point_manager_; | 120 std::unique_ptr<SyncPointManager> sync_point_manager_; |
| 132 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; | 121 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; |
| 133 std::unique_ptr<GpuChannelManager> channel_manager_; | 122 std::unique_ptr<GpuChannelManager> channel_manager_; |
| 134 }; | 123 }; |
| 135 | 124 |
| 136 } // namespace gpu | 125 } // namespace gpu |
| OLD | NEW |