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

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

Issue 1969263004: sync compositor: Remove begin frame source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 6 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BROWSER_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // CompositorFrameProducer overrides 128 // CompositorFrameProducer overrides
129 void OnParentDrawConstraintsUpdated( 129 void OnParentDrawConstraintsUpdated(
130 CompositorFrameConsumer* compositor_frame_consumer) override; 130 CompositorFrameConsumer* compositor_frame_consumer) override;
131 void RemoveCompositorFrameConsumer( 131 void RemoveCompositorFrameConsumer(
132 CompositorFrameConsumer* compositor_frame_consumer) override; 132 CompositorFrameConsumer* compositor_frame_consumer) override;
133 133
134 private: 134 private:
135 void SetTotalRootLayerScrollOffset(const gfx::Vector2dF& new_value_dip); 135 void SetTotalRootLayerScrollOffset(const gfx::Vector2dF& new_value_dip);
136 bool CanOnDraw(); 136 bool CanOnDraw();
137 void UpdateCompositorIsActive();
138 bool CompositeSW(SkCanvas* canvas); 137 bool CompositeSW(SkCanvas* canvas);
139 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 138 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
140 RootLayerStateAsValue(const gfx::Vector2dF& total_scroll_offset_dip, 139 RootLayerStateAsValue(const gfx::Vector2dF& total_scroll_offset_dip,
141 const gfx::SizeF& scrollable_size_dip); 140 const gfx::SizeF& scrollable_size_dip);
142 141
143 void ReturnUnusedResource(std::unique_ptr<ChildFrame> frame); 142 void ReturnUnusedResource(std::unique_ptr<ChildFrame> frame);
144 void ReturnResourceFromParent( 143 void ReturnResourceFromParent(
145 CompositorFrameConsumer* compositor_frame_consumer); 144 CompositorFrameConsumer* compositor_frame_consumer);
146 void ReleaseHardware(); 145 void ReleaseHardware();
147 146
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 uint32_t next_compositor_id_; 203 uint32_t next_compositor_id_;
205 204
206 ParentCompositorDrawConstraints external_draw_constraints_; 205 ParentCompositorDrawConstraints external_draw_constraints_;
207 206
208 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 207 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
209 }; 208 };
210 209
211 } // namespace android_webview 210 } // namespace android_webview
212 211
213 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 212 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698