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

Unified Diff: android_webview/browser/browser_view_renderer_proxy.h

Issue 655813004: Part 1: Refactor Android WebView graphics code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor
Patch Set: rebase Created 6 years, 2 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
Index: android_webview/browser/browser_view_renderer_proxy.h
diff --git a/android_webview/browser/browser_view_renderer_proxy.h b/android_webview/browser/browser_view_renderer_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..72850b3136b0cf9588265ded98dc23245e5947b0
--- /dev/null
+++ b/android_webview/browser/browser_view_renderer_proxy.h
@@ -0,0 +1,33 @@
+// Copyright 2014 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_BROWSER_BROWSER_VIEW_RENDERER_PROXY_H_
+#define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_PROXY_H_
+
+#include "android_webview/browser/parent_compositor_draw_constraints.h"
+#include "base/memory/scoped_ptr.h"
+#include "cc/output/compositor_frame.h"
+#include "cc/resources/returned_resource.h"
+#include "ui/gfx/geometry/vector2d.h"
+
+namespace android_webview {
+
+class BrowserViewRendererProxy {
boliu 2014/10/23 16:40:05 virtual destructor
hush (inactive) 2014/10/24 21:31:33 No BrowserViewRendererProxy anymore...
+ public:
+ virtual void SetScrollOffset(gfx::Vector2d scroll_offset) = 0;
+ virtual void SetCompositorFrame(
+ scoped_ptr<cc::CompositorFrame> compositor_frame,
+ bool force_commit) = 0;
+ virtual bool HasCompositorFrame() const = 0;
+ virtual const ParentCompositorDrawConstraints GetParentDrawConstraints()
boliu 2014/10/23 16:40:05 first const is redundant, you are passing by value
hush (inactive) 2014/10/24 21:31:33 Changed this in SRS
+ const = 0;
+ virtual void SwapReturnedResources(cc::ReturnedResourceArray* resources) = 0;
+ virtual void SetForceInvalidateOnNextDrawGL(
+ bool needs_force_invalidate_on_next_draw_gl) = 0;
+ virtual bool NeedsForceInvalidateOnNextDrawGL() const = 0;
+};
+
+} // namespace android_webview
+
+#endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698