| 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 CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ | 6 #define CONTENT_COMMON_GPU_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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual void StoreShaderToDisk(int32_t client_id, | 61 virtual void StoreShaderToDisk(int32_t client_id, |
| 62 const std::string& key, | 62 const std::string& key, |
| 63 const std::string& shader) = 0; | 63 const std::string& shader) = 0; |
| 64 | 64 |
| 65 #if defined(OS_MACOSX) | 65 #if defined(OS_MACOSX) |
| 66 // Tells the delegate that an accelerated surface has swapped. | 66 // Tells the delegate that an accelerated surface has swapped. |
| 67 virtual void SendAcceleratedSurfaceBuffersSwapped( | 67 virtual void SendAcceleratedSurfaceBuffersSwapped( |
| 68 int32_t surface_id, | 68 int32_t surface_id, |
| 69 CAContextID ca_context_id, | 69 CAContextID ca_context_id, |
| 70 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, | 70 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, |
| 71 bool use_detached, |
| 72 CAContextID detached_ca_context_id, |
| 71 const gfx::Size& size, | 73 const gfx::Size& size, |
| 72 float scale_factor, | 74 float scale_factor, |
| 73 std::vector<ui::LatencyInfo> latency_info) = 0; | 75 std::vector<ui::LatencyInfo> latency_info) = 0; |
| 74 #endif | 76 #endif |
| 75 | 77 |
| 76 #if defined(OS_WIN) | 78 #if defined(OS_WIN) |
| 77 virtual void SendAcceleratedSurfaceCreatedChildWindow( | 79 virtual void SendAcceleratedSurfaceCreatedChildWindow( |
| 78 gpu::SurfaceHandle parent_window, | 80 gpu::SurfaceHandle parent_window, |
| 79 gpu::SurfaceHandle child_window) = 0; | 81 gpu::SurfaceHandle child_window) = 0; |
| 80 #endif | 82 #endif |
| 81 | 83 |
| 82 // Sets the currently active URL. Use GURL() to clear the URL. | 84 // Sets the currently active URL. Use GURL() to clear the URL. |
| 83 virtual void SetActiveURL(const GURL& url) = 0; | 85 virtual void SetActiveURL(const GURL& url) = 0; |
| 84 | 86 |
| 85 protected: | 87 protected: |
| 86 virtual ~GpuChannelManagerDelegate() {} | 88 virtual ~GpuChannelManagerDelegate() {} |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 } // namespace content | 91 } // namespace content |
| 90 | 92 |
| 91 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ | 93 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ |
| OLD | NEW |