Chromium Code Reviews| 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_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_ | |
| OLD | NEW |