Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: ui/compositor/compositor.h

Issue 14050009: Add debug shortcuts that toggles options to shows paint rects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added missing debug.cc|h (happened when I created new CL from patch) Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/debug.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/debug.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698