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

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

Issue 12088092: CrOS: Enable threaded UI compositor by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep for enable flag for other platforms. Created 7 years, 8 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 | « ui/aura/env.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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // appropriately transformed texture for each transformed view in the widget's 251 // appropriately transformed texture for each transformed view in the widget's
252 // view hierarchy. 252 // view hierarchy.
253 class COMPOSITOR_EXPORT Compositor 253 class COMPOSITOR_EXPORT Compositor
254 : NON_EXPORTED_BASE(public cc::LayerTreeHostClient), 254 : NON_EXPORTED_BASE(public cc::LayerTreeHostClient),
255 public base::SupportsWeakPtr<Compositor> { 255 public base::SupportsWeakPtr<Compositor> {
256 public: 256 public:
257 Compositor(CompositorDelegate* delegate, 257 Compositor(CompositorDelegate* delegate,
258 gfx::AcceleratedWidget widget); 258 gfx::AcceleratedWidget widget);
259 virtual ~Compositor(); 259 virtual ~Compositor();
260 260
261 static void Initialize(bool useThread); 261 static void Initialize();
262 static bool WasInitializedWithThread(); 262 static bool WasInitializedWithThread();
263 static void Terminate(); 263 static void Terminate();
264 264
265 // Schedules a redraw of the layer tree associated with this compositor. 265 // Schedules a redraw of the layer tree associated with this compositor.
266 void ScheduleDraw(); 266 void ScheduleDraw();
267 267
268 // Sets the root of the layer tree drawn by this Compositor. The root layer 268 // Sets the root of the layer tree drawn by this Compositor. The root layer
269 // must have no parent. The compositor's root layer is reset if the root layer 269 // must have no parent. The compositor's root layer is reset if the root layer
270 // is destroyed. NULL can be passed to reset the root layer, in which case the 270 // is destroyed. NULL can be passed to reset the root layer, in which case the
271 // compositor will stop drawing anything. 271 // compositor will stop drawing anything.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 bool disable_schedule_composite_; 402 bool disable_schedule_composite_;
403 403
404 CompositorLock* compositor_lock_; 404 CompositorLock* compositor_lock_;
405 405
406 DISALLOW_COPY_AND_ASSIGN(Compositor); 406 DISALLOW_COPY_AND_ASSIGN(Compositor);
407 }; 407 };
408 408
409 } // namespace ui 409 } // namespace ui
410 410
411 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 411 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « ui/aura/env.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698