| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 virtual scoped_refptr<cc::ContextProvider> | 356 virtual scoped_refptr<cc::ContextProvider> |
| 357 OffscreenContextProviderForMainThread() OVERRIDE; | 357 OffscreenContextProviderForMainThread() OVERRIDE; |
| 358 virtual scoped_refptr<cc::ContextProvider> | 358 virtual scoped_refptr<cc::ContextProvider> |
| 359 OffscreenContextProviderForCompositorThread() OVERRIDE; | 359 OffscreenContextProviderForCompositorThread() OVERRIDE; |
| 360 | 360 |
| 361 int last_started_frame() { return last_started_frame_; } | 361 int last_started_frame() { return last_started_frame_; } |
| 362 int last_ended_frame() { return last_ended_frame_; } | 362 int last_ended_frame() { return last_ended_frame_; } |
| 363 | 363 |
| 364 bool IsLocked() { return compositor_lock_ != NULL; } | 364 bool IsLocked() { return compositor_lock_ != NULL; } |
| 365 | 365 |
| 366 bool IsShowPaintRectsEnabled() const; |
| 367 void SetShowPaintRectsEnabled(bool enabled); |
| 368 |
| 366 private: | 369 private: |
| 367 friend class base::RefCounted<Compositor>; | 370 friend class base::RefCounted<Compositor>; |
| 368 friend class CompositorLock; | 371 friend class CompositorLock; |
| 369 | 372 |
| 370 // Called by CompositorLock. | 373 // Called by CompositorLock. |
| 371 void UnlockCompositor(); | 374 void UnlockCompositor(); |
| 372 | 375 |
| 373 // Called to release any pending CompositorLock | 376 // Called to release any pending CompositorLock |
| 374 void CancelCompositorLock(); | 377 void CancelCompositorLock(); |
| 375 | 378 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 403 bool disable_schedule_composite_; | 406 bool disable_schedule_composite_; |
| 404 | 407 |
| 405 CompositorLock* compositor_lock_; | 408 CompositorLock* compositor_lock_; |
| 406 | 409 |
| 407 DISALLOW_COPY_AND_ASSIGN(Compositor); | 410 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 408 }; | 411 }; |
| 409 | 412 |
| 410 } // namespace ui | 413 } // namespace ui |
| 411 | 414 |
| 412 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 415 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |