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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 private: | 35 private: |
36 // GpuChannelManagerDelegate implementation: | 36 // GpuChannelManagerDelegate implementation: |
37 void SetActiveURL(const GURL& url) override; | 37 void SetActiveURL(const GURL& url) override; |
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; | |
45 void StoreShaderToDisk(int32_t client_id, | 44 void StoreShaderToDisk(int32_t client_id, |
46 const std::string& key, | 45 const std::string& key, |
47 const std::string& shader) override; | 46 const std::string& shader) override; |
48 #if defined(OS_WIN) | 47 #if defined(OS_WIN) |
49 void SendAcceleratedSurfaceCreatedChildWindow( | 48 void SendAcceleratedSurfaceCreatedChildWindow( |
50 SurfaceHandle parent_window, | 49 SurfaceHandle parent_window, |
51 SurfaceHandle child_window) override; | 50 SurfaceHandle child_window) override; |
52 #endif | 51 #endif |
53 | 52 |
54 DISALLOW_COPY_AND_ASSIGN(TestGpuChannelManagerDelegate); | 53 DISALLOW_COPY_AND_ASSIGN(TestGpuChannelManagerDelegate); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 private: | 118 private: |
120 GpuPreferences gpu_preferences_; | 119 GpuPreferences gpu_preferences_; |
121 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; | 120 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; |
122 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; | 121 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; |
123 std::unique_ptr<SyncPointManager> sync_point_manager_; | 122 std::unique_ptr<SyncPointManager> sync_point_manager_; |
124 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; | 123 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; |
125 std::unique_ptr<GpuChannelManager> channel_manager_; | 124 std::unique_ptr<GpuChannelManager> channel_manager_; |
126 }; | 125 }; |
127 | 126 |
128 } // namespace gpu | 127 } // namespace gpu |
OLD | NEW |