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

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

Issue 476113004: Replace overdraw_bottom_height with top_controls_layout_height. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 4 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 | Annotate | Revision Log
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 "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual ~RenderWidgetCompositor(); 44 virtual ~RenderWidgetCompositor();
45 45
46 const base::WeakPtr<cc::InputHandler>& GetInputHandler(); 46 const base::WeakPtr<cc::InputHandler>& GetInputHandler();
47 void SetSuppressScheduleComposite(bool suppress); 47 void SetSuppressScheduleComposite(bool suppress);
48 bool BeginMainFrameRequested() const; 48 bool BeginMainFrameRequested() const;
49 void SetNeedsDisplayOnAllLayers(); 49 void SetNeedsDisplayOnAllLayers();
50 void SetRasterizeOnlyVisibleContent(); 50 void SetRasterizeOnlyVisibleContent();
51 void UpdateTopControlsState(cc::TopControlsState constraints, 51 void UpdateTopControlsState(cc::TopControlsState constraints,
52 cc::TopControlsState current, 52 cc::TopControlsState current,
53 bool animate); 53 bool animate);
54 void SetOverdrawBottomHeight(float overdraw_bottom_height); 54 void SetTopControlsLayoutHeight(float top_controls_layout_height);
55 void SetNeedsRedrawRect(gfx::Rect damage_rect); 55 void SetNeedsRedrawRect(gfx::Rect damage_rect);
56 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs. 56 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs.
57 // Redraw will be forced after the next commit 57 // Redraw will be forced after the next commit
58 void SetNeedsForcedRedraw(); 58 void SetNeedsForcedRedraw();
59 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped 59 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped
60 // LatencyInfoSwapPromiseMonitor. During the life time of the 60 // LatencyInfoSwapPromiseMonitor. During the life time of the
61 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer() 61 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer()
62 // is called on LayerTreeHost, the original latency info will be turned 62 // is called on LayerTreeHost, the original latency info will be turned
63 // into a LatencyInfoSwapPromise. 63 // into a LatencyInfoSwapPromise.
64 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 64 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 bool threaded_; 155 bool threaded_;
156 bool suppress_schedule_composite_; 156 bool suppress_schedule_composite_;
157 RenderWidget* widget_; 157 RenderWidget* widget_;
158 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 158 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
159 }; 159 };
160 160
161 } // namespace content 161 } // namespace content
162 162
163 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 163 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698