Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: android_webview/gpu/aw_content_gpu_client.h

Issue 1908223002: Remove content/gpu from content/browser/android/DEPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: owned_sync_point_manager_ Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/gpu/DEPS ('k') | android_webview/gpu/aw_content_gpu_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/gpu/aw_content_gpu_client.h
diff --git a/android_webview/gpu/aw_content_gpu_client.h b/android_webview/gpu/aw_content_gpu_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..bd90a1a6e650d0ef13b6325031ec061f797e4fc0
--- /dev/null
+++ b/android_webview/gpu/aw_content_gpu_client.h
@@ -0,0 +1,32 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ANDROID_WEBVIEW_GPU_AW_CONTENT_GPU_CLIENT_H_
+#define ANDROID_WEBVIEW_GPU_AW_CONTENT_GPU_CLIENT_H_
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "content/public/gpu/content_gpu_client.h"
+
+namespace android_webview {
+
+class AwContentGpuClient : public content::ContentGpuClient {
+ public:
+ using GetSyncPointManagerCallback = base::Callback<gpu::SyncPointManager*()>;
+
+ explicit AwContentGpuClient(const GetSyncPointManagerCallback& callback);
+ ~AwContentGpuClient() override;
+
+ // content::ContentGpuClient implementation.
+ void RegisterMojoServices(content::ServiceRegistry* registry) override;
+ gpu::SyncPointManager* GetSyncPointManager() override;
+
+ private:
+ GetSyncPointManagerCallback sync_point_manager_callback_;
+ DISALLOW_COPY_AND_ASSIGN(AwContentGpuClient);
+};
+
+} // namespace android_webview
+
+#endif // ANDROID_WEBVIEW_GPU_AW_CONTENT_GPU_CLIENT_H_
« no previous file with comments | « android_webview/gpu/DEPS ('k') | android_webview/gpu/aw_content_gpu_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698