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

Side by Side Diff: cc/VideoLayerChromium.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/TreeSynchronizerTest.cpp ('k') | cc/VideoLayerChromium.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 VideoLayerChromium_h 6 #ifndef VideoLayerChromium_h
7 #define VideoLayerChromium_h 7 #define VideoLayerChromium_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 WebKit { 13 namespace WebKit {
14 class WebVideoFrameProvider; 14 class WebVideoFrameProvider;
15 } 15 }
16 16
17 namespace cc { 17 namespace cc {
18 18
19 class CCVideoLayerImpl; 19 class CCVideoLayerImpl;
20 20
21 // A Layer that contains a Video element. 21 // A Layer that contains a Video element.
22 class VideoLayerChromium : public LayerChromium { 22 class VideoLayerChromium : public LayerChromium {
23 public: 23 public:
24 static scoped_refptr<VideoLayerChromium> create(WebKit::WebVideoFrameProvide r*); 24 static scoped_refptr<VideoLayerChromium> create(WebKit::WebVideoFrameProvide r*);
25 25
26 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; 26 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
27 27
28 private: 28 private:
29 explicit VideoLayerChromium(WebKit::WebVideoFrameProvider*); 29 explicit VideoLayerChromium(WebKit::WebVideoFrameProvider*);
30 virtual ~VideoLayerChromium(); 30 virtual ~VideoLayerChromium();
31 31
32 // This pointer is only for passing to CCVideoLayerImpl's constructor. It sh ould never be dereferenced by this class. 32 // This pointer is only for passing to CCVideoLayerImpl's constructor. It sh ould never be dereferenced by this class.
33 WebKit::WebVideoFrameProvider* m_provider; 33 WebKit::WebVideoFrameProvider* m_provider;
34 }; 34 };
35 35
36 } 36 }
37 #endif // USE(ACCELERATED_COMPOSITING) 37 #endif // USE(ACCELERATED_COMPOSITING)
38 38
39 #endif 39 #endif
OLDNEW
« no previous file with comments | « cc/TreeSynchronizerTest.cpp ('k') | cc/VideoLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698