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

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: Created 7 years, 3 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/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/debug/rendering_stats.h" 10 #include "cc/debug/rendering_stats.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void GetRenderingStats(cc::RenderingStats* stats); 46 void GetRenderingStats(cc::RenderingStats* stats);
47 void UpdateTopControlsState(cc::TopControlsState constraints, 47 void UpdateTopControlsState(cc::TopControlsState constraints,
48 cc::TopControlsState current, 48 cc::TopControlsState current,
49 bool animate); 49 bool animate);
50 void SetOverdrawBottomHeight(float overdraw_bottom_height); 50 void SetOverdrawBottomHeight(float overdraw_bottom_height);
51 void SetNeedsRedrawRect(gfx::Rect damage_rect); 51 void SetNeedsRedrawRect(gfx::Rect damage_rect);
52 void SetLatencyInfo(const ui::LatencyInfo& latency_info); 52 void SetLatencyInfo(const ui::LatencyInfo& latency_info);
53 int GetLayerTreeId() const; 53 int GetLayerTreeId() const;
54 void NotifyInputThrottledUntilCommit(); 54 void NotifyInputThrottledUntilCommit();
55 const cc::Layer* GetRootLayer() const; 55 const cc::Layer* GetRootLayer() const;
56 // Like setNeedsRedraw, but forces the frame to be drawn, without
57 // any early-outs.
58 void SetNeedsForcedRedraw();
56 59
57 // WebLayerTreeView implementation. 60 // WebLayerTreeView implementation.
58 virtual void setSurfaceReady(); 61 virtual void setSurfaceReady();
59 virtual void setRootLayer(const WebKit::WebLayer& layer); 62 virtual void setRootLayer(const WebKit::WebLayer& layer);
60 virtual void clearRootLayer(); 63 virtual void clearRootLayer();
61 virtual void setViewportSize( 64 virtual void setViewportSize(
62 const WebKit::WebSize& unused_deprecated, 65 const WebKit::WebSize& unused_deprecated,
63 const WebKit::WebSize& device_viewport_size); 66 const WebKit::WebSize& device_viewport_size);
64 virtual WebKit::WebSize layoutViewportSize() const; 67 virtual WebKit::WebSize layoutViewportSize() const;
65 virtual WebKit::WebSize deviceViewportSize() const; 68 virtual WebKit::WebSize deviceViewportSize() const;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 122
120 bool threaded_; 123 bool threaded_;
121 bool suppress_schedule_composite_; 124 bool suppress_schedule_composite_;
122 RenderWidget* widget_; 125 RenderWidget* widget_;
123 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 126 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
124 }; 127 };
125 128
126 } // namespace content 129 } // namespace content
127 130
128 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 131 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698