OLD | NEW |
---|---|
(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_BROWSER_VIEW_RENDERER_PROXY_H_ | |
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_PROXY_H_ | |
7 | |
8 #include "android_webview/browser/parent_compositor_draw_constraints.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "cc/output/compositor_frame.h" | |
11 #include "cc/resources/returned_resource.h" | |
12 #include "ui/gfx/geometry/vector2d.h" | |
13 | |
14 namespace android_webview { | |
15 | |
16 class BrowserViewRendererProxy { | |
boliu
2014/10/23 16:40:05
virtual destructor
hush (inactive)
2014/10/24 21:31:33
No BrowserViewRendererProxy anymore...
| |
17 public: | |
18 virtual void SetScrollOffset(gfx::Vector2d scroll_offset) = 0; | |
19 virtual void SetCompositorFrame( | |
20 scoped_ptr<cc::CompositorFrame> compositor_frame, | |
21 bool force_commit) = 0; | |
22 virtual bool HasCompositorFrame() const = 0; | |
23 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
| |
24 const = 0; | |
25 virtual void SwapReturnedResources(cc::ReturnedResourceArray* resources) = 0; | |
26 virtual void SetForceInvalidateOnNextDrawGL( | |
27 bool needs_force_invalidate_on_next_draw_gl) = 0; | |
28 virtual bool NeedsForceInvalidateOnNextDrawGL() const = 0; | |
29 }; | |
30 | |
31 } // namespace android_webview | |
32 | |
33 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_PROXY_H_ | |
OLD | NEW |