| 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 ANDROID_WEBVIEW_GPU_AW_CONTENT_GPU_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_GPU_AW_CONTENT_GPU_CLIENT_H_ |
| 6 #define ANDROID_WEBVIEW_GPU_AW_CONTENT_GPU_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_GPU_AW_CONTENT_GPU_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "content/public/gpu/content_gpu_client.h" | 10 #include "content/public/gpu/content_gpu_client.h" |
| 11 | 11 |
| 12 namespace android_webview { | 12 namespace android_webview { |
| 13 | 13 |
| 14 class AwContentGpuClient : public content::ContentGpuClient { | 14 class AwContentGpuClient : public content::ContentGpuClient { |
| 15 public: | 15 public: |
| 16 using GetSyncPointManagerCallback = base::Callback<gpu::SyncPointManager*()>; | 16 using GetSyncPointManagerCallback = base::Callback<gpu::SyncPointManager*()>; |
| 17 | 17 |
| 18 explicit AwContentGpuClient(const GetSyncPointManagerCallback& callback); | 18 explicit AwContentGpuClient(const GetSyncPointManagerCallback& callback); |
| 19 ~AwContentGpuClient() override; | 19 ~AwContentGpuClient() override; |
| 20 | 20 |
| 21 // content::ContentGpuClient implementation. | 21 // content::ContentGpuClient implementation. |
| 22 void ExposeInterfacesToBrowser(shell::InterfaceRegistry* registry) override; | |
| 23 gpu::SyncPointManager* GetSyncPointManager() override; | 22 gpu::SyncPointManager* GetSyncPointManager() override; |
| 24 | 23 |
| 25 private: | 24 private: |
| 26 GetSyncPointManagerCallback sync_point_manager_callback_; | 25 GetSyncPointManagerCallback sync_point_manager_callback_; |
| 27 DISALLOW_COPY_AND_ASSIGN(AwContentGpuClient); | 26 DISALLOW_COPY_AND_ASSIGN(AwContentGpuClient); |
| 28 }; | 27 }; |
| 29 | 28 |
| 30 } // namespace android_webview | 29 } // namespace android_webview |
| 31 | 30 |
| 32 #endif // ANDROID_WEBVIEW_GPU_AW_CONTENT_GPU_CLIENT_H_ | 31 #endif // ANDROID_WEBVIEW_GPU_AW_CONTENT_GPU_CLIENT_H_ |
| OLD | NEW |