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

Side by Side Diff: cc/SolidColorLayerChromium.h

Issue 11099040: [cc] Store CCLayerImpls as scoped_ptrs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cc unit tests 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/ScrollbarLayerChromiumTest.cpp ('k') | cc/SolidColorLayerChromium.cpp » ('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 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 5
6 #ifndef SolidColorLayerChromium_h 6 #ifndef SolidColorLayerChromium_h
7 #define SolidColorLayerChromium_h 7 #define SolidColorLayerChromium_h
8 8
9 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
11 #include "LayerChromium.h" 11 #include "LayerChromium.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 // A Layer that renders a solid color. The color is specified by using 15 // A Layer that renders a solid color. The color is specified by using
16 // setBackgroundColor() on the base class. 16 // setBackgroundColor() on the base class.
17 class SolidColorLayerChromium : public LayerChromium { 17 class SolidColorLayerChromium : public LayerChromium {
18 public: 18 public:
19 static scoped_refptr<SolidColorLayerChromium> create(); 19 static scoped_refptr<SolidColorLayerChromium> create();
20 20
21 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; 21 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
22 22
23 protected: 23 protected:
24 SolidColorLayerChromium(); 24 SolidColorLayerChromium();
25 25
26 private: 26 private:
27 virtual ~SolidColorLayerChromium(); 27 virtual ~SolidColorLayerChromium();
28 }; 28 };
29 29
30 } 30 }
31 #endif // USE(ACCELERATED_COMPOSITING) 31 #endif // USE(ACCELERATED_COMPOSITING)
32 32
33 #endif 33 #endif
OLDNEW
« no previous file with comments | « cc/ScrollbarLayerChromiumTest.cpp ('k') | cc/SolidColorLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698