| 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 "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "cc/layer_tree_host_client.h" | 12 #include "cc/layer_tree_host_client.h" |
| 13 #include "ui/compositor/compositor_export.h" | 13 #include "ui/compositor/compositor_export.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 15 #include "ui/gfx/size.h" | 15 #include "ui/gfx/size.h" |
| 16 #include "ui/gfx/transform.h" | 16 #include "ui/gfx/transform.h" |
| 17 #include "ui/gl/gl_share_group.h" | 17 #include "ui/gl/gl_share_group.h" |
| 18 | 18 |
| 19 class SkBitmap; | 19 class SkBitmap; |
| 20 | 20 |
| 21 namespace cc { | 21 namespace cc { |
| 22 class FontAtlas; |
| 22 class Layer; | 23 class Layer; |
| 23 class LayerTreeHost; | 24 class LayerTreeHost; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace gfx { | 27 namespace gfx { |
| 27 class GLContext; | 28 class GLContext; |
| 28 class GLSurface; | 29 class GLSurface; |
| 29 class GLShareGroup; | 30 class GLShareGroup; |
| 30 class Point; | 31 class Point; |
| 31 class Rect; | 32 class Rect; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 float pageScale) OVERRIDE; | 252 float pageScale) OVERRIDE; |
| 252 virtual scoped_ptr<WebKit::WebCompositorOutputSurface> | 253 virtual scoped_ptr<WebKit::WebCompositorOutputSurface> |
| 253 createOutputSurface() OVERRIDE; | 254 createOutputSurface() OVERRIDE; |
| 254 virtual void didRecreateOutputSurface(bool success) OVERRIDE; | 255 virtual void didRecreateOutputSurface(bool success) OVERRIDE; |
| 255 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; | 256 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; |
| 256 virtual void willCommit() OVERRIDE; | 257 virtual void willCommit() OVERRIDE; |
| 257 virtual void didCommit() OVERRIDE; | 258 virtual void didCommit() OVERRIDE; |
| 258 virtual void didCommitAndDrawFrame() OVERRIDE; | 259 virtual void didCommitAndDrawFrame() OVERRIDE; |
| 259 virtual void didCompleteSwapBuffers() OVERRIDE; | 260 virtual void didCompleteSwapBuffers() OVERRIDE; |
| 260 virtual void scheduleComposite() OVERRIDE; | 261 virtual void scheduleComposite() OVERRIDE; |
| 262 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() OVERRIDE; |
| 261 | 263 |
| 262 | 264 |
| 263 int last_started_frame() { return last_started_frame_; } | 265 int last_started_frame() { return last_started_frame_; } |
| 264 int last_ended_frame() { return last_ended_frame_; } | 266 int last_ended_frame() { return last_ended_frame_; } |
| 265 | 267 |
| 266 bool IsLocked() { return compositor_lock_ != NULL; } | 268 bool IsLocked() { return compositor_lock_ != NULL; } |
| 267 | 269 |
| 268 private: | 270 private: |
| 269 friend class base::RefCounted<Compositor>; | 271 friend class base::RefCounted<Compositor>; |
| 270 friend class CompositorLock; | 272 friend class CompositorLock; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 bool disable_schedule_composite_; | 305 bool disable_schedule_composite_; |
| 304 | 306 |
| 305 CompositorLock* compositor_lock_; | 307 CompositorLock* compositor_lock_; |
| 306 | 308 |
| 307 DISALLOW_COPY_AND_ASSIGN(Compositor); | 309 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 308 }; | 310 }; |
| 309 | 311 |
| 310 } // namespace ui | 312 } // namespace ui |
| 311 | 313 |
| 312 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 314 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |