| 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 17 matching lines...) Expand all Loading... |
| 28 class SyncPointManager; | 28 class SyncPointManager; |
| 29 | 29 |
| 30 class TestGpuChannelManagerDelegate : public GpuChannelManagerDelegate { | 30 class TestGpuChannelManagerDelegate : public GpuChannelManagerDelegate { |
| 31 public: | 31 public: |
| 32 TestGpuChannelManagerDelegate(); | 32 TestGpuChannelManagerDelegate(); |
| 33 ~TestGpuChannelManagerDelegate() override; | 33 ~TestGpuChannelManagerDelegate() override; |
| 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 AddSubscription(int32_t client_id, unsigned int target) override; | |
| 39 void DidCreateOffscreenContext(const GURL& active_url) override; | 38 void DidCreateOffscreenContext(const GURL& active_url) override; |
| 40 void DidDestroyChannel(int client_id) override; | 39 void DidDestroyChannel(int client_id) override; |
| 41 void DidDestroyOffscreenContext(const GURL& active_url) override; | 40 void DidDestroyOffscreenContext(const GURL& active_url) override; |
| 42 void DidLoseContext(bool offscreen, | 41 void DidLoseContext(bool offscreen, |
| 43 error::ContextLostReason reason, | 42 error::ContextLostReason reason, |
| 44 const GURL& active_url) override; | 43 const GURL& active_url) override; |
| 45 void GpuMemoryUmaStats(const GPUMemoryUmaStats& params) override; | 44 void GpuMemoryUmaStats(const GPUMemoryUmaStats& params) override; |
| 46 void RemoveSubscription(int32_t client_id, unsigned int target) override; | |
| 47 void StoreShaderToDisk(int32_t client_id, | 45 void StoreShaderToDisk(int32_t client_id, |
| 48 const std::string& key, | 46 const std::string& key, |
| 49 const std::string& shader) override; | 47 const std::string& shader) override; |
| 50 #if defined(OS_MACOSX) | 48 #if defined(OS_MACOSX) |
| 51 void SendAcceleratedSurfaceBuffersSwapped( | 49 void SendAcceleratedSurfaceBuffersSwapped( |
| 52 int32_t surface_id, | 50 int32_t surface_id, |
| 53 CAContextID ca_context_id, | 51 CAContextID ca_context_id, |
| 54 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, | 52 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, |
| 55 const gfx::Size& size, | 53 const gfx::Size& size, |
| 56 float scale_factor, | 54 float scale_factor, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 private: | 125 private: |
| 128 GpuPreferences gpu_preferences_; | 126 GpuPreferences gpu_preferences_; |
| 129 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; | 127 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; |
| 130 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; | 128 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; |
| 131 std::unique_ptr<SyncPointManager> sync_point_manager_; | 129 std::unique_ptr<SyncPointManager> sync_point_manager_; |
| 132 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; | 130 std::unique_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; |
| 133 std::unique_ptr<GpuChannelManager> channel_manager_; | 131 std::unique_ptr<GpuChannelManager> channel_manager_; |
| 134 }; | 132 }; |
| 135 | 133 |
| 136 } // namespace gpu | 134 } // namespace gpu |
| OLD | NEW |