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

Unified Diff: content/browser/android/synchronous_compositor_base.h

Issue 1408123005: Android Webview IPC-based sync compositing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win compile Created 5 years, 1 month 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
Index: content/browser/android/synchronous_compositor_base.h
diff --git a/content/browser/android/synchronous_compositor_base.h b/content/browser/android/synchronous_compositor_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..1da2aee4f8837f1f4d5b93c3d757d85c2542af22
--- /dev/null
+++ b/content/browser/android/synchronous_compositor_base.h
@@ -0,0 +1,45 @@
+// Copyright 2015 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 CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
+#define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "content/common/input/input_event_ack_state.h"
+#include "content/public/browser/android/synchronous_compositor.h"
+
+namespace IPC {
+class Message;
+}
+
+namespace blink {
+class WebInputEvent;
+}
+
+namespace cc {
+struct BeginFrameArgs;
+}
+
+namespace content {
+
+class RenderWidgetHostViewAndroid;
+class WebContents;
+
+class SynchronousCompositorBase : public SynchronousCompositor {
+ public:
+ static scoped_ptr<SynchronousCompositorBase> Create(
+ RenderWidgetHostViewAndroid* rwhva,
+ WebContents* web_contents);
+
+ ~SynchronousCompositorBase() override {}
+
+ virtual void BeginFrame(const cc::BeginFrameArgs& args) = 0;
+ virtual InputEventAckState HandleInputEvent(
+ const blink::WebInputEvent& input_event) = 0;
+ virtual bool OnMessageReceived(const IPC::Message& message) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698