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

Side by Side Diff: cc/layer_tree_host.h

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 188402 Created 7 years, 9 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
« no previous file with comments | « cc/frame_rate_controller.cc ('k') | cc/layer_tree_host.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYER_TREE_HOST_H_ 5 #ifndef CC_LAYER_TREE_HOST_H_
6 #define CC_LAYER_TREE_HOST_H_ 6 #define CC_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void DidCompleteSwapBuffers() { client_->didCompleteSwapBuffers(); } 117 void DidCompleteSwapBuffers() { client_->didCompleteSwapBuffers(); }
118 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); 118 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider);
119 virtual void AcquireLayerTextures(); 119 virtual void AcquireLayerTextures();
120 // Returns false if we should abort this frame due to initialization failure. 120 // Returns false if we should abort this frame due to initialization failure.
121 bool InitializeRendererIfNeeded(); 121 bool InitializeRendererIfNeeded();
122 void UpdateLayers(ResourceUpdateQueue* queue, 122 void UpdateLayers(ResourceUpdateQueue* queue,
123 size_t contents_memory_limit_bytes); 123 size_t contents_memory_limit_bytes);
124 124
125 LayerTreeHostClient* client() { return client_; } 125 LayerTreeHostClient* client() { return client_; }
126 126
127 void Composite(); 127 void Composite(base::TimeTicks frame_begin_time);
128 128
129 // Only used when compositing on the main thread. 129 // Only used when compositing on the main thread.
130 void ScheduleComposite(); 130 void ScheduleComposite();
131 131
132 // Composites and attempts to read back the result into the provided 132 // Composites and attempts to read back the result into the provided
133 // buffer. If it wasn't possible, e.g. due to context lost, will return 133 // buffer. If it wasn't possible, e.g. due to context lost, will return
134 // false. 134 // false.
135 bool CompositeAndReadback(void* pixels, gfx::Rect rect_in_device_viewport); 135 bool CompositeAndReadback(void* pixels, gfx::Rect rect_in_device_viewport);
136 136
137 void FinishAllRendering(); 137 void FinishAllRendering();
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 size_t partial_texture_update_requests_; 310 size_t partial_texture_update_requests_;
311 311
312 scoped_ptr<AnimationRegistrar> animation_registrar_; 312 scoped_ptr<AnimationRegistrar> animation_registrar_;
313 313
314 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 314 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
315 }; 315 };
316 316
317 } // namespace cc 317 } // namespace cc
318 318
319 #endif // CC_LAYER_TREE_HOST_H_ 319 #endif // CC_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/frame_rate_controller.cc ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698