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

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

Issue 1081223002: Use MessageLoop for CompositorTest.LocksTimeOut (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@impl
Patch Set: move constant to header Created 5 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
« no previous file with comments | « no previous file | ui/compositor/compositor.cc » ('j') | ui/compositor/compositor_unittest.cc » ('J')
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 <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 namespace ui { 56 namespace ui {
57 57
58 class Compositor; 58 class Compositor;
59 class CompositorVSyncManager; 59 class CompositorVSyncManager;
60 class Layer; 60 class Layer;
61 class Reflector; 61 class Reflector;
62 class Texture; 62 class Texture;
63 struct LatencyInfo; 63 struct LatencyInfo;
64 64
65 const int kCompositorLockTimeoutMs = 67;
66
65 // This class abstracts the creation of the 3D context for the compositor. It is 67 // This class abstracts the creation of the 3D context for the compositor. It is
66 // a global object. 68 // a global object.
67 class COMPOSITOR_EXPORT ContextFactory { 69 class COMPOSITOR_EXPORT ContextFactory {
68 public: 70 public:
69 virtual ~ContextFactory() {} 71 virtual ~ContextFactory() {}
70 72
71 // Creates an output surface for the given compositor. The factory may keep 73 // Creates an output surface for the given compositor. The factory may keep
72 // per-compositor data (e.g. a shared context), that needs to be cleaned up 74 // per-compositor data (e.g. a shared context), that needs to be cleaned up
73 // by calling RemoveCompositor when the compositor gets destroyed. 75 // by calling RemoveCompositor when the compositor gets destroyed.
74 virtual void CreateOutputSurface(base::WeakPtr<Compositor> compositor) = 0; 76 virtual void CreateOutputSurface(base::WeakPtr<Compositor> compositor) = 0;
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 cc::BeginFrameArgs missed_begin_frame_args_; 356 cc::BeginFrameArgs missed_begin_frame_args_;
355 357
356 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 358 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
357 359
358 DISALLOW_COPY_AND_ASSIGN(Compositor); 360 DISALLOW_COPY_AND_ASSIGN(Compositor);
359 }; 361 };
360 362
361 } // namespace ui 363 } // namespace ui
362 364
363 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 365 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « no previous file | ui/compositor/compositor.cc » ('j') | ui/compositor/compositor_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698