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

Side by Side Diff: android_webview/browser/hardware_renderer.h

Issue 738983002: Move output surface fallback from cc to embedders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years 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
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
7 7
8 #include "android_webview/browser/parent_compositor_draw_constraints.h" 8 #include "android_webview/browser/parent_compositor_draw_constraints.h"
9 #include "android_webview/browser/shared_renderer_state.h" 9 #include "android_webview/browser/shared_renderer_state.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void Layout() override {} 45 virtual void Layout() override {}
46 virtual void ApplyViewportDeltas( 46 virtual void ApplyViewportDeltas(
47 const gfx::Vector2d& inner_delta, 47 const gfx::Vector2d& inner_delta,
48 const gfx::Vector2d& outer_delta, 48 const gfx::Vector2d& outer_delta,
49 const gfx::Vector2dF& elastic_overscroll_delta, 49 const gfx::Vector2dF& elastic_overscroll_delta,
50 float page_scale, 50 float page_scale,
51 float top_controls_delta) override {} 51 float top_controls_delta) override {}
52 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 52 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
53 float page_scale, 53 float page_scale,
54 float top_controls_delta) override {} 54 float top_controls_delta) override {}
55 virtual void RequestNewOutputSurface(bool fallback) override; 55 virtual void RequestNewOutputSurface() override;
56 virtual void DidInitializeOutputSurface() override {} 56 virtual void DidInitializeOutputSurface() override {}
57 virtual void DidFailToInitializeOutputSurface() override;
57 virtual void WillCommit() override {} 58 virtual void WillCommit() override {}
58 virtual void DidCommit() override {} 59 virtual void DidCommit() override {}
59 virtual void DidCommitAndDrawFrame() override {} 60 virtual void DidCommitAndDrawFrame() override {}
60 virtual void DidCompleteSwapBuffers() override {} 61 virtual void DidCompleteSwapBuffers() override {}
61 62
62 // cc::LayerTreeHostSingleThreadClient overrides. 63 // cc::LayerTreeHostSingleThreadClient overrides.
63 virtual void DidPostSwapBuffers() override {} 64 virtual void DidPostSwapBuffers() override {}
64 virtual void DidAbortSwapBuffers() override {} 65 virtual void DidAbortSwapBuffers() override {}
65 66
66 // cc::DelegatedFrameResourceCollectionClient overrides. 67 // cc::DelegatedFrameResourceCollectionClient overrides.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 ParentOutputSurface* output_surface_; 102 ParentOutputSurface* output_surface_;
102 103
103 ParentCompositorDrawConstraints draw_constraints_; 104 ParentCompositorDrawConstraints draw_constraints_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 106 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
106 }; 107 };
107 108
108 } // namespace android_webview 109 } // namespace android_webview
109 110
110 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 111 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698