| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ | 5 #ifndef GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ |
| 6 #define GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ | 6 #define GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "gpu/command_buffer/common/constants.h" | 8 #include "gpu/command_buffer/common/constants.h" |
| 9 #include "gpu/ipc/common/surface_handle.h" | 9 #include "gpu/ipc/common/surface_handle.h" |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // the respective GpuChannelManager API. | 50 // the respective GpuChannelManager API. |
| 51 virtual void StoreShaderToDisk(int32_t client_id, | 51 virtual void StoreShaderToDisk(int32_t client_id, |
| 52 const std::string& key, | 52 const std::string& key, |
| 53 const std::string& shader) = 0; | 53 const std::string& shader) = 0; |
| 54 | 54 |
| 55 #if defined(OS_MACOSX) | 55 #if defined(OS_MACOSX) |
| 56 // Tells the delegate that an accelerated surface has swapped. | 56 // Tells the delegate that an accelerated surface has swapped. |
| 57 virtual void SendAcceleratedSurfaceBuffersSwapped( | 57 virtual void SendAcceleratedSurfaceBuffersSwapped( |
| 58 gpu::SurfaceHandle surface_handle, | 58 gpu::SurfaceHandle surface_handle, |
| 59 CAContextID ca_context_id, | 59 CAContextID ca_context_id, |
| 60 bool fullscreen_low_power_ca_context_valid, |
| 61 CAContextID fullscreen_low_power_ca_context_id, |
| 60 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, | 62 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, |
| 61 const gfx::Size& size, | 63 const gfx::Size& size, |
| 62 float scale_factor, | 64 float scale_factor, |
| 63 std::vector<ui::LatencyInfo> latency_info) = 0; | 65 std::vector<ui::LatencyInfo> latency_info) = 0; |
| 64 #endif | 66 #endif |
| 65 | 67 |
| 66 #if defined(OS_WIN) | 68 #if defined(OS_WIN) |
| 67 virtual void SendAcceleratedSurfaceCreatedChildWindow( | 69 virtual void SendAcceleratedSurfaceCreatedChildWindow( |
| 68 SurfaceHandle parent_window, | 70 SurfaceHandle parent_window, |
| 69 SurfaceHandle child_window) = 0; | 71 SurfaceHandle child_window) = 0; |
| 70 #endif | 72 #endif |
| 71 | 73 |
| 72 // Sets the currently active URL. Use GURL() to clear the URL. | 74 // Sets the currently active URL. Use GURL() to clear the URL. |
| 73 virtual void SetActiveURL(const GURL& url) = 0; | 75 virtual void SetActiveURL(const GURL& url) = 0; |
| 74 | 76 |
| 75 protected: | 77 protected: |
| 76 virtual ~GpuChannelManagerDelegate() {} | 78 virtual ~GpuChannelManagerDelegate() {} |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 } // namespace gpu | 81 } // namespace gpu |
| 80 | 82 |
| 81 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ | 83 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ |
| OLD | NEW |