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

Side by Side Diff: android_webview/browser/hardware_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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_PROXY_H_
6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_PROXY_H_
7 #include "android_webview/browser/parent_compositor_draw_constraints.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/output/compositor_frame.h"
10 #include "cc/resources/returned_resource.h"
11 #include "ui/gfx/geometry/vector2d_f.h"
12
13 namespace android_webview {
14
15 class HardwareRendererProxy {
boliu 2014/10/23 16:40:05 virtual destructor
16 public:
17 virtual gfx::Vector2d GetScrollOffset() = 0;
boliu 2014/10/23 16:40:05 nit, can we add OnRT to the end of all these funct
18 virtual scoped_ptr<cc::CompositorFrame> PassCompositorFrame() = 0;
19 // Returns true if the draw constraints are updated.
20 virtual bool SetParentCompositorDrawConstraints(
21 const ParentCompositorDrawConstraints& draw_constraints) = 0;
22 virtual void PostExternalDrawConstraintsToChildCompositor(
23 const ParentCompositorDrawConstraints& draw_constraints) = 0;
24 virtual void InsertReturnedResources(
25 const cc::ReturnedResourceArray& resources) = 0;
26 virtual void DidSkipCommitFrame() = 0;
27 virtual bool ForceCommit() const = 0;
28 };
29
30 } // namespace android_webview
31
32 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698