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: content/browser/renderer_host/compositor_impl_android.h

Issue 870363005: Remove scroll_delta flooring hack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/cancelable_callback.h" 9 #include "base/cancelable_callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void SetHasTransparentBackground(bool flag) override; 60 void SetHasTransparentBackground(bool flag) override;
61 void SetNeedsComposite() override; 61 void SetNeedsComposite() override;
62 ui::UIResourceProvider& GetUIResourceProvider() override; 62 ui::UIResourceProvider& GetUIResourceProvider() override;
63 ui::ResourceManager& GetResourceManager() override; 63 ui::ResourceManager& GetResourceManager() override;
64 64
65 // LayerTreeHostClient implementation. 65 // LayerTreeHostClient implementation.
66 void WillBeginMainFrame() override {} 66 void WillBeginMainFrame() override {}
67 void DidBeginMainFrame() override {} 67 void DidBeginMainFrame() override {}
68 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} 68 void BeginMainFrame(const cc::BeginFrameArgs& args) override {}
69 void Layout() override; 69 void Layout() override;
70 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, 70 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
71 const gfx::Vector2d& outer_delta, 71 const gfx::Vector2dF& outer_delta,
72 const gfx::Vector2dF& elastic_overscroll_delta, 72 const gfx::Vector2dF& elastic_overscroll_delta,
73 float page_scale, 73 float page_scale,
74 float top_controls_delta) override {} 74 float top_controls_delta) override {}
75 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 75 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
76 float page_scale, 76 float page_scale,
77 float top_controls_delta) override {} 77 float top_controls_delta) override {}
78 void RequestNewOutputSurface() override; 78 void RequestNewOutputSurface() override;
79 void DidInitializeOutputSurface() override {} 79 void DidInitializeOutputSurface() override {}
80 void DidFailToInitializeOutputSurface() override; 80 void DidFailToInitializeOutputSurface() override;
81 void WillCommit() override {} 81 void WillCommit() override {}
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 base::TimeTicks last_vsync_; 192 base::TimeTicks last_vsync_;
193 193
194 base::WeakPtrFactory<CompositorImpl> weak_factory_; 194 base::WeakPtrFactory<CompositorImpl> weak_factory_;
195 195
196 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 196 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
197 }; 197 };
198 198
199 } // namespace content 199 } // namespace content
200 200
201 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 201 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698