| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 void OnSwapBuffersAborted(); | 245 void OnSwapBuffersAborted(); |
| 246 | 246 |
| 247 void OnUpdateVSyncParameters(base::TimeTicks timebase, | 247 void OnUpdateVSyncParameters(base::TimeTicks timebase, |
| 248 base::TimeDelta interval); | 248 base::TimeDelta interval); |
| 249 | 249 |
| 250 // LayerTreeHostClient implementation. | 250 // LayerTreeHostClient implementation. |
| 251 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} | 251 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
| 252 virtual void DidBeginMainFrame() OVERRIDE {} | 252 virtual void DidBeginMainFrame() OVERRIDE {} |
| 253 virtual void Animate(double frame_begin_time) OVERRIDE {} | 253 virtual void Animate(double frame_begin_time) OVERRIDE {} |
| 254 virtual void Layout() OVERRIDE; | 254 virtual void Layout() OVERRIDE; |
| 255 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, | 255 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, |
| 256 float page_scale) OVERRIDE {} | 256 float page_scale) OVERRIDE {} |
| 257 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 257 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 258 OVERRIDE; | 258 OVERRIDE; |
| 259 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 259 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
| 260 virtual void WillCommit() OVERRIDE {} | 260 virtual void WillCommit() OVERRIDE {} |
| 261 virtual void DidCommit() OVERRIDE; | 261 virtual void DidCommit() OVERRIDE; |
| 262 virtual void DidCommitAndDrawFrame() OVERRIDE; | 262 virtual void DidCommitAndDrawFrame() OVERRIDE; |
| 263 virtual void DidCompleteSwapBuffers() OVERRIDE; | 263 virtual void DidCompleteSwapBuffers() OVERRIDE; |
| 264 virtual scoped_refptr<cc::ContextProvider> | 264 virtual scoped_refptr<cc::ContextProvider> |
| 265 OffscreenContextProvider() OVERRIDE; | 265 OffscreenContextProvider() OVERRIDE; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 bool draw_on_compositing_end_; | 326 bool draw_on_compositing_end_; |
| 327 | 327 |
| 328 base::WeakPtrFactory<Compositor> schedule_draw_factory_; | 328 base::WeakPtrFactory<Compositor> schedule_draw_factory_; |
| 329 | 329 |
| 330 DISALLOW_COPY_AND_ASSIGN(Compositor); | 330 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 } // namespace ui | 333 } // namespace ui |
| 334 | 334 |
| 335 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 335 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |