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

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: 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
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void didCommitAndDrawFrame() { m_client->didCommitAndDrawFrame(); } 111 void didCommitAndDrawFrame() { m_client->didCommitAndDrawFrame(); }
112 void didCompleteSwapBuffers() { m_client->didCompleteSwapBuffers(); } 112 void didCompleteSwapBuffers() { m_client->didCompleteSwapBuffers(); }
113 void deleteContentsTexturesOnImplThread(ResourceProvider*); 113 void deleteContentsTexturesOnImplThread(ResourceProvider*);
114 virtual void acquireLayerTextures(); 114 virtual void acquireLayerTextures();
115 // Returns false if we should abort this frame due to initialization failure . 115 // Returns false if we should abort this frame due to initialization failure .
116 bool initializeRendererIfNeeded(); 116 bool initializeRendererIfNeeded();
117 void updateLayers(ResourceUpdateQueue&, size_t contentsMemoryLimitBytes); 117 void updateLayers(ResourceUpdateQueue&, size_t contentsMemoryLimitBytes);
118 118
119 LayerTreeHostClient* client() { return m_client; } 119 LayerTreeHostClient* client() { return m_client; }
120 120
121 void composite(); 121 void composite(base::TimeTicks frameBeginTime);
122 122
123 // Only used when compositing on the main thread. 123 // Only used when compositing on the main thread.
124 void scheduleComposite(); 124 void scheduleComposite();
125 125
126 // Composites and attempts to read back the result into the provided 126 // Composites and attempts to read back the result into the provided
127 // buffer. If it wasn't possible, e.g. due to context lost, will return 127 // buffer. If it wasn't possible, e.g. due to context lost, will return
128 // false. 128 // false.
129 bool compositeAndReadback(void *pixels, const gfx::Rect&); 129 bool compositeAndReadback(void *pixels, const gfx::Rect&);
130 130
131 void finishAllRendering(); 131 void finishAllRendering();
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 size_t m_partialTextureUpdateRequests; 283 size_t m_partialTextureUpdateRequests;
284 284
285 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 285 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
286 286
287 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 287 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
288 }; 288 };
289 289
290 } // namespace cc 290 } // namespace cc
291 291
292 #endif // CC_LAYER_TREE_HOST_H_ 292 #endif // CC_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/frame_rate_controller.cc ('k') | cc/layer_tree_host.cc » ('j') | cc/layer_tree_host_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698