| 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 30 matching lines...) Expand all Loading... |
| 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 gpu::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 int32_t surface_id, |
| 52 CAContextID ca_context_id, |
| 53 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, |
| 54 const gfx::Size& size, |
| 55 float scale_factor, |
| 56 std::vector<ui::LatencyInfo> latency_info) override; |
| 52 #endif | 57 #endif |
| 53 #if defined(OS_WIN) | 58 #if defined(OS_WIN) |
| 54 void SendAcceleratedSurfaceCreatedChildWindow( | 59 void SendAcceleratedSurfaceCreatedChildWindow( |
| 55 gpu::SurfaceHandle parent_window, | 60 gpu::SurfaceHandle parent_window, |
| 56 gpu::SurfaceHandle child_window) override; | 61 gpu::SurfaceHandle child_window) override; |
| 57 #endif | 62 #endif |
| 58 | 63 |
| 59 DISALLOW_COPY_AND_ASSIGN(TestGpuChannelManagerDelegate); | 64 DISALLOW_COPY_AND_ASSIGN(TestGpuChannelManagerDelegate); |
| 60 }; | 65 }; |
| 61 | 66 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 private: | 126 private: |
| 122 gpu::GpuPreferences gpu_preferences_; | 127 gpu::GpuPreferences gpu_preferences_; |
| 123 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; | 128 scoped_refptr<base::TestSimpleTaskRunner> task_runner_; |
| 124 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; | 129 scoped_refptr<base::TestSimpleTaskRunner> io_task_runner_; |
| 125 scoped_ptr<gpu::SyncPointManager> sync_point_manager_; | 130 scoped_ptr<gpu::SyncPointManager> sync_point_manager_; |
| 126 scoped_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; | 131 scoped_ptr<TestGpuChannelManagerDelegate> channel_manager_delegate_; |
| 127 scoped_ptr<GpuChannelManager> channel_manager_; | 132 scoped_ptr<GpuChannelManager> channel_manager_; |
| 128 }; | 133 }; |
| 129 | 134 |
| 130 } // namespace content | 135 } // namespace content |
| OLD | NEW |