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

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

Issue 585063002: Made double-tap zoom work in pinch virtual viewport mode (Chromium-side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another build fix Created 6 years, 3 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
« no previous file with comments | « no previous file | cc/test/fake_layer_tree_host_client.h » ('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 25 matching lines...) Expand all
36 void DrawGL(bool stencil_enabled, 36 void DrawGL(bool stencil_enabled,
37 int framebuffer_binding_ext, 37 int framebuffer_binding_ext,
38 AwDrawGLInfo* draw_info); 38 AwDrawGLInfo* draw_info);
39 void CommitFrame(); 39 void CommitFrame();
40 40
41 // cc::LayerTreeHostClient overrides. 41 // cc::LayerTreeHostClient overrides.
42 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} 42 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {}
43 virtual void DidBeginMainFrame() OVERRIDE; 43 virtual void DidBeginMainFrame() OVERRIDE;
44 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE {} 44 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE {}
45 virtual void Layout() OVERRIDE {} 45 virtual void Layout() OVERRIDE {}
46 virtual void ApplyViewportDeltas(const gfx::Vector2d& inner_delta,
47 const gfx::Vector2d& outer_delta,
48 float page_scale,
49 float top_controls_delta) OVERRIDE {}
46 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 50 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
47 float page_scale, 51 float page_scale,
48 float top_controls_delta) OVERRIDE {} 52 float top_controls_delta) OVERRIDE {}
49 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 53 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
50 bool fallback) OVERRIDE; 54 bool fallback) OVERRIDE;
51 virtual void DidInitializeOutputSurface() OVERRIDE {} 55 virtual void DidInitializeOutputSurface() OVERRIDE {}
52 virtual void WillCommit() OVERRIDE {} 56 virtual void WillCommit() OVERRIDE {}
53 virtual void DidCommit() OVERRIDE {} 57 virtual void DidCommit() OVERRIDE {}
54 virtual void DidCommitAndDrawFrame() OVERRIDE {} 58 virtual void DidCommitAndDrawFrame() OVERRIDE {}
55 virtual void DidCompleteSwapBuffers() OVERRIDE {} 59 virtual void DidCompleteSwapBuffers() OVERRIDE {}
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 ParentOutputSurface* output_surface_; 98 ParentOutputSurface* output_surface_;
95 99
96 ParentCompositorDrawConstraints draw_constraints_; 100 ParentCompositorDrawConstraints draw_constraints_;
97 101
98 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 102 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
99 }; 103 };
100 104
101 } // namespace android_webview 105 } // namespace android_webview
102 106
103 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 107 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/test/fake_layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698