OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_COMPOSITOR_COMPOSITOR_H_ | 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ |
6 #define UI_COMPOSITOR_COMPOSITOR_H_ | 6 #define UI_COMPOSITOR_COMPOSITOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 // Signals swap has completed. | 303 // Signals swap has completed. |
304 void OnSwapBuffersComplete(); | 304 void OnSwapBuffersComplete(); |
305 | 305 |
306 // Signals swap has aborted (e.g. lost context). | 306 // Signals swap has aborted (e.g. lost context). |
307 void OnSwapBuffersAborted(); | 307 void OnSwapBuffersAborted(); |
308 | 308 |
309 void OnUpdateVSyncParameters(base::TimeTicks timebase, | 309 void OnUpdateVSyncParameters(base::TimeTicks timebase, |
310 base::TimeDelta interval); | 310 base::TimeDelta interval); |
311 | 311 |
312 // LayerTreeHostClient implementation. | 312 // LayerTreeHostClient implementation. |
313 virtual void WillBeginMainFrame() OVERRIDE {} | 313 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
314 virtual void DidBeginMainFrame() OVERRIDE {} | 314 virtual void DidBeginMainFrame() OVERRIDE {} |
315 virtual void Animate(double frame_begin_time) OVERRIDE {} | 315 virtual void Animate(double frame_begin_time) OVERRIDE {} |
316 virtual void Layout() OVERRIDE; | 316 virtual void Layout() OVERRIDE; |
317 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, | 317 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, |
318 float page_scale) OVERRIDE {} | 318 float page_scale) OVERRIDE {} |
319 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 319 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
320 OVERRIDE; | 320 OVERRIDE; |
321 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 321 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
322 virtual void WillCommit() OVERRIDE {} | 322 virtual void WillCommit() OVERRIDE {} |
323 virtual void DidCommit() OVERRIDE; | 323 virtual void DidCommit() OVERRIDE; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 bool draw_on_compositing_end_; | 393 bool draw_on_compositing_end_; |
394 | 394 |
395 base::WeakPtrFactory<Compositor> schedule_draw_factory_; | 395 base::WeakPtrFactory<Compositor> schedule_draw_factory_; |
396 | 396 |
397 DISALLOW_COPY_AND_ASSIGN(Compositor); | 397 DISALLOW_COPY_AND_ASSIGN(Compositor); |
398 }; | 398 }; |
399 | 399 |
400 } // namespace ui | 400 } // namespace ui |
401 | 401 |
402 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 402 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |