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

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

Issue 290563005: Do SetNeedsCommit() instead of Composite() in threaded mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: composite: . Created 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('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 (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 28 matching lines...) Expand all
39 // with the given settings. Returns NULL if initialization fails. 39 // with the given settings. Returns NULL if initialization fails.
40 static scoped_ptr<RenderWidgetCompositor> Create(RenderWidget* widget, 40 static scoped_ptr<RenderWidgetCompositor> Create(RenderWidget* widget,
41 bool threaded); 41 bool threaded);
42 42
43 virtual ~RenderWidgetCompositor(); 43 virtual ~RenderWidgetCompositor();
44 44
45 const base::WeakPtr<cc::InputHandler>& GetInputHandler(); 45 const base::WeakPtr<cc::InputHandler>& GetInputHandler();
46 void SetSuppressScheduleComposite(bool suppress); 46 void SetSuppressScheduleComposite(bool suppress);
47 bool BeginMainFrameRequested() const; 47 bool BeginMainFrameRequested() const;
48 void UpdateAnimations(base::TimeTicks time); 48 void UpdateAnimations(base::TimeTicks time);
49 void Composite(base::TimeTicks frame_begin_time);
50 void SetNeedsDisplayOnAllLayers(); 49 void SetNeedsDisplayOnAllLayers();
51 void SetRasterizeOnlyVisibleContent(); 50 void SetRasterizeOnlyVisibleContent();
52 void UpdateTopControlsState(cc::TopControlsState constraints, 51 void UpdateTopControlsState(cc::TopControlsState constraints,
53 cc::TopControlsState current, 52 cc::TopControlsState current,
54 bool animate); 53 bool animate);
55 void SetOverdrawBottomHeight(float overdraw_bottom_height); 54 void SetOverdrawBottomHeight(float overdraw_bottom_height);
56 void SetNeedsRedrawRect(gfx::Rect damage_rect); 55 void SetNeedsRedrawRect(gfx::Rect damage_rect);
57 // 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.
58 // Redraw will be forced after the next commit 57 // Redraw will be forced after the next commit
59 void SetNeedsForcedRedraw(); 58 void SetNeedsForcedRedraw();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 144
146 bool threaded_; 145 bool threaded_;
147 bool suppress_schedule_composite_; 146 bool suppress_schedule_composite_;
148 RenderWidget* widget_; 147 RenderWidget* widget_;
149 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 148 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
150 }; 149 };
151 150
152 } // namespace content 151 } // namespace content
153 152
154 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 153 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698