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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 2835763002: Use swap-promise to improve first* paint times (Closed)
Patch Set: remove printfs Created 3 years, 7 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 CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void UpdateEventRectsForSubframeIfNecessary() override; 160 void UpdateEventRectsForSubframeIfNecessary() override;
161 blink::WebEventListenerProperties EventListenerProperties( 161 blink::WebEventListenerProperties EventListenerProperties(
162 blink::WebEventListenerClass eventClass) const override; 162 blink::WebEventListenerClass eventClass) const override;
163 void SetHaveScrollEventHandlers(bool) override; 163 void SetHaveScrollEventHandlers(bool) override;
164 bool HaveScrollEventHandlers() const override; 164 bool HaveScrollEventHandlers() const override;
165 int LayerTreeId() const override; 165 int LayerTreeId() const override;
166 void SetShowFPSCounter(bool show) override; 166 void SetShowFPSCounter(bool show) override;
167 void SetShowPaintRects(bool show) override; 167 void SetShowPaintRects(bool show) override;
168 void SetShowDebugBorders(bool show) override; 168 void SetShowDebugBorders(bool show) override;
169 void SetShowScrollBottleneckRects(bool show) override; 169 void SetShowScrollBottleneckRects(bool show) override;
170 void NotifySwapTime(base::Callback<void(bool, double)> callback) override;
170 171
171 void UpdateBrowserControlsState(blink::WebBrowserControlsState constraints, 172 void UpdateBrowserControlsState(blink::WebBrowserControlsState constraints,
172 blink::WebBrowserControlsState current, 173 blink::WebBrowserControlsState current,
173 bool animate) override; 174 bool animate) override;
174 void SetBrowserControlsHeight(float height, bool shrink) override; 175 void SetBrowserControlsHeight(float height, bool shrink) override;
175 void SetBrowserControlsShownRatio(float) override; 176 void SetBrowserControlsShownRatio(float) override;
176 // TODO(ianwen): Move this method to WebLayerTreeView and implement main 177 // TODO(ianwen): Move this method to WebLayerTreeView and implement main
177 // thread scrolling. 178 // thread scrolling.
178 virtual void setBottomControlsHeight(float height); 179 virtual void setBottomControlsHeight(float height);
179 180
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; 239 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_;
239 240
240 cc::FrameSinkId frame_sink_id_; 241 cc::FrameSinkId frame_sink_id_;
241 242
242 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 243 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
243 }; 244 };
244 245
245 } // namespace content 246 } // namespace content
246 247
247 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 248 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698