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 "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "content/common/gpu/gpu_channel.h" | 8 #include "content/common/gpu/gpu_channel.h" |
9 #include "content/common/gpu/gpu_channel_manager.h" | 9 #include "content/common/gpu/gpu_channel_manager.h" |
10 #include "content/common/gpu/gpu_channel_manager_delegate.h" | 10 #include "content/common/gpu/gpu_channel_manager_delegate.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 private: | 34 private: |
35 // GpuChannelManagerDelegate implementation: | 35 // GpuChannelManagerDelegate implementation: |
36 void SetActiveURL(const GURL& url) override; | 36 void SetActiveURL(const GURL& url) override; |
37 void AddSubscription(int32_t client_id, unsigned int target) override; | 37 void AddSubscription(int32_t client_id, unsigned int target) 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 gpu::error::ContextLostReason reason, | 42 gpu::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 gpu::GPUMemoryUmaStats& params) override; |
45 void RemoveSubscription(int32_t client_id, unsigned int target) override; | 45 void RemoveSubscription(int32_t client_id, unsigned int target) override; |
46 void StoreShaderToDisk(int32_t client_id, | 46 void StoreShaderToDisk(int32_t client_id, |
47 const std::string& key, | 47 const std::string& key, |
48 const std::string& shader) override; | 48 const std::string& shader) override; |
49 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
50 void SendAcceleratedSurfaceBuffersSwapped( | 50 void SendAcceleratedSurfaceBuffersSwapped( |
51 const AcceleratedSurfaceBuffersSwappedParams& params) override; | 51 const AcceleratedSurfaceBuffersSwappedParams& params) override; |
52 #endif | 52 #endif |
53 #if defined(OS_WIN) | 53 #if defined(OS_WIN) |
54 void SendAcceleratedSurfaceCreatedChildWindow( | 54 void SendAcceleratedSurfaceCreatedChildWindow( |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 private: | 121 private: |
122 gpu::GpuPreferences gpu_preferences_; | 122 gpu::GpuPreferences gpu_preferences_; |
123 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; | 123 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; |
124 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; | 124 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; |
125 scoped_ptr<gpu::SyncPointManager> sync_point_manager_; | 125 scoped_ptr<gpu::SyncPointManager> sync_point_manager_; |
126 scoped_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; | 126 scoped_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; |
127 scoped_ptr<GpuChannelManager> channel_manager_; | 127 scoped_ptr<GpuChannelManager> channel_manager_; |
128 }; | 128 }; |
129 | 129 |
130 } // namespace content | 130 } // namespace content |
OLD | NEW |