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

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

Issue 26880010: gfx: Add FrameTime and DisplayTime classes (Closed) Base URL: http://git.chromium.org/chromium/src.git@checkHighResNow4
Patch Set: WIP Created 7 years, 1 month 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
« no previous file with comments | « cc/output/begin_frame_args.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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 void OnSwapBuffersComplete(); 183 void OnSwapBuffersComplete();
184 void ReclaimResources(const CompositorFrameAck* ack); 184 void ReclaimResources(const CompositorFrameAck* ack);
185 void DidLoseOutputSurface(); 185 void DidLoseOutputSurface();
186 void SetExternalStencilTest(bool enabled); 186 void SetExternalStencilTest(bool enabled);
187 void SetExternalDrawConstraints(const gfx::Transform& transform, 187 void SetExternalDrawConstraints(const gfx::Transform& transform,
188 gfx::Rect viewport, 188 gfx::Rect viewport,
189 gfx::Rect clip, 189 gfx::Rect clip,
190 bool valid_for_tile_management); 190 bool valid_for_tile_management);
191 191
192 // virtual for testing. 192 // virtual for testing.
193 virtual base::TimeTicks RetroactiveBeginImplFrameDeadline(); 193 virtual gfx::FrameTime RetroactiveBeginImplFrameDeadline();
194 virtual void PostCheckForRetroactiveBeginImplFrame(); 194 virtual void PostCheckForRetroactiveBeginImplFrame();
195 void CheckForRetroactiveBeginImplFrame(); 195 void CheckForRetroactiveBeginImplFrame();
196 196
197 private: 197 private:
198 OutputSurfaceClient* client_; 198 OutputSurfaceClient* client_;
199 friend class OutputSurfaceCallbacks; 199 friend class OutputSurfaceCallbacks;
200 200
201 void SetUpContext3d(); 201 void SetUpContext3d();
202 void ResetContext3d(); 202 void ResetContext3d();
203 void SetMemoryPolicy(const ManagedMemoryPolicy& policy, 203 void SetMemoryPolicy(const ManagedMemoryPolicy& policy,
(...skipping 11 matching lines...) Expand all
215 std::deque<unsigned> available_gpu_latency_query_ids_; 215 std::deque<unsigned> available_gpu_latency_query_ids_;
216 std::deque<unsigned> pending_gpu_latency_query_ids_; 216 std::deque<unsigned> pending_gpu_latency_query_ids_;
217 RollingTimeDeltaHistory gpu_latency_history_; 217 RollingTimeDeltaHistory gpu_latency_history_;
218 218
219 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 219 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
220 }; 220 };
221 221
222 } // namespace cc 222 } // namespace cc
223 223
224 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 224 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/output/begin_frame_args.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698