| 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/hash_tables.h" | 10 #include "base/hash_tables.h" |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // Signals swap has completed. | 332 // Signals swap has completed. |
| 333 void OnSwapBuffersComplete(); | 333 void OnSwapBuffersComplete(); |
| 334 | 334 |
| 335 // Signals swap has aborted (e.g. lost context). | 335 // Signals swap has aborted (e.g. lost context). |
| 336 void OnSwapBuffersAborted(); | 336 void OnSwapBuffersAborted(); |
| 337 | 337 |
| 338 void OnUpdateVSyncParameters(base::TimeTicks timebase, | 338 void OnUpdateVSyncParameters(base::TimeTicks timebase, |
| 339 base::TimeDelta interval); | 339 base::TimeDelta interval); |
| 340 | 340 |
| 341 // LayerTreeHostClient implementation. | 341 // LayerTreeHostClient implementation. |
| 342 virtual void WillBeginFrame() OVERRIDE {} | 342 virtual void WillBeginMainFrame() OVERRIDE {} |
| 343 virtual void DidBeginFrame() OVERRIDE {} | 343 virtual void DidBeginMainFrame() OVERRIDE {} |
| 344 virtual void Animate(double frame_begin_time) OVERRIDE {} | 344 virtual void Animate(double frame_begin_time) OVERRIDE {} |
| 345 virtual void Layout() OVERRIDE; | 345 virtual void Layout() OVERRIDE; |
| 346 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, | 346 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, |
| 347 float page_scale) OVERRIDE {} | 347 float page_scale) OVERRIDE {} |
| 348 virtual scoped_ptr<cc::OutputSurface> | 348 virtual scoped_ptr<cc::OutputSurface> |
| 349 CreateOutputSurface() OVERRIDE; | 349 CreateOutputSurface() OVERRIDE; |
| 350 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 350 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
| 351 virtual scoped_ptr<cc::InputHandlerClient> CreateInputHandlerClient() | 351 virtual scoped_ptr<cc::InputHandlerClient> CreateInputHandlerClient() |
| 352 OVERRIDE; | 352 OVERRIDE; |
| 353 virtual void WillCommit() OVERRIDE {} | 353 virtual void WillCommit() OVERRIDE {} |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 bool disable_schedule_composite_; | 408 bool disable_schedule_composite_; |
| 409 | 409 |
| 410 CompositorLock* compositor_lock_; | 410 CompositorLock* compositor_lock_; |
| 411 | 411 |
| 412 DISALLOW_COPY_AND_ASSIGN(Compositor); | 412 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 413 }; | 413 }; |
| 414 | 414 |
| 415 } // namespace ui | 415 } // namespace ui |
| 416 | 416 |
| 417 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 417 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |