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

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

Issue 23694031: Fix race conditions in window snapshot code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Nit Created 7 years, 2 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 | « content/common/view_messages.h ('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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void Animate(base::TimeTicks time); 44 void Animate(base::TimeTicks time);
45 void Composite(base::TimeTicks frame_begin_time); 45 void Composite(base::TimeTicks frame_begin_time);
46 void SetNeedsDisplayOnAllLayers(); 46 void SetNeedsDisplayOnAllLayers();
47 void SetRasterizeOnlyVisibleContent(); 47 void SetRasterizeOnlyVisibleContent();
48 void GetRenderingStats(cc::RenderingStats* stats); 48 void GetRenderingStats(cc::RenderingStats* stats);
49 void UpdateTopControlsState(cc::TopControlsState constraints, 49 void UpdateTopControlsState(cc::TopControlsState constraints,
50 cc::TopControlsState current, 50 cc::TopControlsState current,
51 bool animate); 51 bool animate);
52 void SetOverdrawBottomHeight(float overdraw_bottom_height); 52 void SetOverdrawBottomHeight(float overdraw_bottom_height);
53 void SetNeedsRedrawRect(gfx::Rect damage_rect); 53 void SetNeedsRedrawRect(gfx::Rect damage_rect);
54 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs.
55 // Redraw will be forced after the next commit
56 void SetNeedsForcedRedraw();
54 void SetLatencyInfo(const ui::LatencyInfo& latency_info); 57 void SetLatencyInfo(const ui::LatencyInfo& latency_info);
55 int GetLayerTreeId() const; 58 int GetLayerTreeId() const;
56 void NotifyInputThrottledUntilCommit(); 59 void NotifyInputThrottledUntilCommit();
57 const cc::Layer* GetRootLayer() const; 60 const cc::Layer* GetRootLayer() const;
58 bool ScheduleMicroBenchmark( 61 bool ScheduleMicroBenchmark(
59 const std::string& name, 62 const std::string& name,
60 const base::Callback<void(scoped_ptr<base::Value>)>& callback); 63 const base::Callback<void(scoped_ptr<base::Value>)>& callback);
61 64
62 // WebLayerTreeView implementation. 65 // WebLayerTreeView implementation.
63 virtual void setSurfaceReady(); 66 virtual void setSurfaceReady();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 131
129 bool threaded_; 132 bool threaded_;
130 bool suppress_schedule_composite_; 133 bool suppress_schedule_composite_;
131 RenderWidget* widget_; 134 RenderWidget* widget_;
132 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 135 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
133 }; 136 };
134 137
135 } // namespace content 138 } // namespace content
136 139
137 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 140 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698