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

Side by Side Diff: cc/output/output_surface.h

Issue 138903025: Read compositor VSync information from platform, when possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 287efe04 Rebase, oshima@ nits. Created 6 years, 10 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 | « ash/wm/window_animations.cc ('k') | cc/output/output_surface.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CC_OUTPUT_OUTPUT_SURFACE_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void PostSwapBuffersComplete(); 152 void PostSwapBuffersComplete();
153 153
154 struct OutputSurface::Capabilities capabilities_; 154 struct OutputSurface::Capabilities capabilities_;
155 scoped_refptr<ContextProvider> context_provider_; 155 scoped_refptr<ContextProvider> context_provider_;
156 scoped_ptr<SoftwareOutputDevice> software_device_; 156 scoped_ptr<SoftwareOutputDevice> software_device_;
157 gfx::Size surface_size_; 157 gfx::Size surface_size_;
158 float device_scale_factor_; 158 float device_scale_factor_;
159 159
160 // The FrameRateController is deprecated. 160 // The FrameRateController is deprecated.
161 // Platforms should move to native BeginImplFrames instead. 161 // Platforms should move to native BeginImplFrames instead.
162 void OnVSyncParametersChanged(base::TimeTicks timebase, 162 void CommitVSyncParameters(base::TimeTicks timebase,
163 base::TimeDelta interval); 163 base::TimeDelta interval);
164 virtual void FrameRateControllerTick(bool throttled, 164 virtual void FrameRateControllerTick(bool throttled,
165 const BeginFrameArgs& args) OVERRIDE; 165 const BeginFrameArgs& args) OVERRIDE;
166 scoped_ptr<FrameRateController> frame_rate_controller_; 166 scoped_ptr<FrameRateController> frame_rate_controller_;
167 int max_frames_pending_; 167 int max_frames_pending_;
168 int pending_swap_buffers_; 168 int pending_swap_buffers_;
169 bool needs_begin_impl_frame_; 169 bool needs_begin_impl_frame_;
170 bool client_ready_for_begin_impl_frame_; 170 bool client_ready_for_begin_impl_frame_;
171 171
172 // This stores a BeginImplFrame that we couldn't process immediately, 172 // This stores a BeginImplFrame that we couldn't process immediately,
173 // but might process retroactively in the near future. 173 // but might process retroactively in the near future.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 std::deque<unsigned> available_gpu_latency_query_ids_; 211 std::deque<unsigned> available_gpu_latency_query_ids_;
212 std::deque<unsigned> pending_gpu_latency_query_ids_; 212 std::deque<unsigned> pending_gpu_latency_query_ids_;
213 RollingTimeDeltaHistory gpu_latency_history_; 213 RollingTimeDeltaHistory gpu_latency_history_;
214 214
215 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 215 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
216 }; 216 };
217 217
218 } // namespace cc 218 } // namespace cc
219 219
220 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 220 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « ash/wm/window_animations.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698