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

Side by Side Diff: cc/test/WebCompositorInitializer.h

Issue 10985088: cc: Switch it to use DISALLOW_COPY_AND_ASSIGN macro from base/ library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 2 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 | « cc/UnthrottledTextureUploader.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 WebCompositorInitializer_h 5 #ifndef WebCompositorInitializer_h
6 #define WebCompositorInitializer_h 6 #define WebCompositorInitializer_h
7 7
8 #include "base/basictypes.h"
8 #include <public/Platform.h> 9 #include <public/Platform.h>
9 #include <public/WebCompositorSupport.h> 10 #include <public/WebCompositorSupport.h>
10 #include <wtf/Noncopyable.h>
11 11
12 namespace WebKit { 12 namespace WebKit {
13 class WebThread; 13 class WebThread;
14 } 14 }
15 15
16 namespace WebKitTests { 16 namespace WebKitTests {
17 17
18 class WebCompositorInitializer { 18 class WebCompositorInitializer {
19 WTF_MAKE_NONCOPYABLE(WebCompositorInitializer);
20 public: 19 public:
21 explicit WebCompositorInitializer(WebKit::WebThread* thread) 20 explicit WebCompositorInitializer(WebKit::WebThread* thread)
22 { 21 {
23 WebKit::Platform::current()->compositorSupport()->initialize(thread); 22 WebKit::Platform::current()->compositorSupport()->initialize(thread);
24 } 23 }
25 24
26 ~WebCompositorInitializer() 25 ~WebCompositorInitializer()
27 { 26 {
28 WebKit::Platform::current()->compositorSupport()->shutdown(); 27 WebKit::Platform::current()->compositorSupport()->shutdown();
29 } 28 }
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(WebCompositorInitializer);
30 }; 32 };
31 33
32 } 34 }
33 35
34 #endif // WebCompositorInitializer_h 36 #endif // WebCompositorInitializer_h
OLDNEW
« no previous file with comments | « cc/UnthrottledTextureUploader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698