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

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

Issue 606113003: Revert of Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void setTopControlsContentOffset(float); 128 virtual void setTopControlsContentOffset(float);
129 129
130 // cc::LayerTreeHostClient implementation. 130 // cc::LayerTreeHostClient implementation.
131 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; 131 virtual void WillBeginMainFrame(int frame_id) OVERRIDE;
132 virtual void DidBeginMainFrame() OVERRIDE; 132 virtual void DidBeginMainFrame() OVERRIDE;
133 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE; 133 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE;
134 virtual void Layout() OVERRIDE; 134 virtual void Layout() OVERRIDE;
135 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 135 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
136 float page_scale, 136 float page_scale,
137 float top_controls_delta) OVERRIDE; 137 float top_controls_delta) OVERRIDE;
138 virtual void RequestNewOutputSurface(bool fallback) OVERRIDE; 138 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
139 OVERRIDE;
139 virtual void DidInitializeOutputSurface() OVERRIDE; 140 virtual void DidInitializeOutputSurface() OVERRIDE;
140 virtual void WillCommit() OVERRIDE; 141 virtual void WillCommit() OVERRIDE;
141 virtual void DidCommit() OVERRIDE; 142 virtual void DidCommit() OVERRIDE;
142 virtual void DidCommitAndDrawFrame() OVERRIDE; 143 virtual void DidCommitAndDrawFrame() OVERRIDE;
143 virtual void DidCompleteSwapBuffers() OVERRIDE; 144 virtual void DidCompleteSwapBuffers() OVERRIDE;
144 virtual void RateLimitSharedMainThreadContext() OVERRIDE; 145 virtual void RateLimitSharedMainThreadContext() OVERRIDE;
145 146
146 // cc::LayerTreeHostSingleThreadClient implementation. 147 // cc::LayerTreeHostSingleThreadClient implementation.
147 virtual void ScheduleAnimation() OVERRIDE; 148 virtual void ScheduleAnimation() OVERRIDE;
148 virtual void DidPostSwapBuffers() OVERRIDE; 149 virtual void DidPostSwapBuffers() OVERRIDE;
(...skipping 10 matching lines...) Expand all
159 160
160 bool send_v8_idle_notification_after_commit_; 161 bool send_v8_idle_notification_after_commit_;
161 base::TimeTicks begin_main_frame_time_; 162 base::TimeTicks begin_main_frame_time_;
162 // The time interval between BeginMainFrame calls, provided by the scheduler. 163 // The time interval between BeginMainFrame calls, provided by the scheduler.
163 base::TimeDelta begin_main_frame_interval_; 164 base::TimeDelta begin_main_frame_interval_;
164 }; 165 };
165 166
166 } // namespace content 167 } // namespace content
167 168
168 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 169 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698