| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // Signals swap has completed. | 301 // Signals swap has completed. |
| 302 void OnSwapBuffersComplete(); | 302 void OnSwapBuffersComplete(); |
| 303 | 303 |
| 304 // Signals swap has aborted (e.g. lost context). | 304 // Signals swap has aborted (e.g. lost context). |
| 305 void OnSwapBuffersAborted(); | 305 void OnSwapBuffersAborted(); |
| 306 | 306 |
| 307 void OnUpdateVSyncParameters(base::TimeTicks timebase, | 307 void OnUpdateVSyncParameters(base::TimeTicks timebase, |
| 308 base::TimeDelta interval); | 308 base::TimeDelta interval); |
| 309 | 309 |
| 310 // LayerTreeHostClient implementation. | 310 // LayerTreeHostClient implementation. |
| 311 virtual void WillBeginMainFrame() OVERRIDE {} | 311 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
| 312 virtual void DidBeginMainFrame() OVERRIDE {} | 312 virtual void DidBeginMainFrame() OVERRIDE {} |
| 313 virtual void Animate(double frame_begin_time) OVERRIDE {} | 313 virtual void Animate(double frame_begin_time) OVERRIDE {} |
| 314 virtual void Layout() OVERRIDE; | 314 virtual void Layout() OVERRIDE; |
| 315 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, | 315 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, |
| 316 float page_scale) OVERRIDE {} | 316 float page_scale) OVERRIDE {} |
| 317 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 317 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 318 OVERRIDE; | 318 OVERRIDE; |
| 319 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 319 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
| 320 virtual void WillCommit() OVERRIDE {} | 320 virtual void WillCommit() OVERRIDE {} |
| 321 virtual void DidCommit() OVERRIDE; | 321 virtual void DidCommit() OVERRIDE; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 bool draw_on_compositing_end_; | 381 bool draw_on_compositing_end_; |
| 382 | 382 |
| 383 base::WeakPtrFactory<Compositor> schedule_draw_factory_; | 383 base::WeakPtrFactory<Compositor> schedule_draw_factory_; |
| 384 | 384 |
| 385 DISALLOW_COPY_AND_ASSIGN(Compositor); | 385 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 } // namespace ui | 388 } // namespace ui |
| 389 | 389 |
| 390 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 390 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |