OLD | NEW |
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 CC_VIDEO_LAYER_IMPL_H_ | 5 #ifndef CC_VIDEO_LAYER_IMPL_H_ |
6 #define CC_VIDEO_LAYER_IMPL_H_ | 6 #define CC_VIDEO_LAYER_IMPL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "cc/cc_export.h" | 10 #include "cc/cc_export.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 const FrameUnwrapper& unwrapper) | 37 const FrameUnwrapper& unwrapper) |
38 { | 38 { |
39 return make_scoped_ptr(new VideoLayerImpl(id, provider, unwrapper)); | 39 return make_scoped_ptr(new VideoLayerImpl(id, provider, unwrapper)); |
40 } | 40 } |
41 virtual ~VideoLayerImpl(); | 41 virtual ~VideoLayerImpl(); |
42 | 42 |
43 virtual void willDraw(ResourceProvider*) OVERRIDE; | 43 virtual void willDraw(ResourceProvider*) OVERRIDE; |
44 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; | 44 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; |
45 virtual void didDraw(ResourceProvider*) OVERRIDE; | 45 virtual void didDraw(ResourceProvider*) OVERRIDE; |
46 | 46 |
47 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; | |
48 | |
49 // WebKit::WebVideoFrameProvider::Client implementation. | 47 // WebKit::WebVideoFrameProvider::Client implementation. |
50 virtual void stopUsingProvider(); // Callable on any thread. | 48 virtual void stopUsingProvider(); // Callable on any thread. |
51 virtual void didReceiveFrame(); // Callable on impl thread. | 49 virtual void didReceiveFrame(); // Callable on impl thread. |
52 virtual void didUpdateMatrix(const float*); // Callable on impl thread. | 50 virtual void didUpdateMatrix(const float*); // Callable on impl thread. |
53 | 51 |
54 virtual void didLoseContext() OVERRIDE; | 52 virtual void didLoseContext() OVERRIDE; |
55 | 53 |
56 void setNeedsRedraw(); | 54 void setNeedsRedraw(); |
57 | 55 |
58 struct FramePlane { | 56 struct FramePlane { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 ResourceProvider::ResourceId m_externalTextureResource; | 91 ResourceProvider::ResourceId m_externalTextureResource; |
94 scoped_ptr<media::SkCanvasVideoRenderer> m_videoRenderer; | 92 scoped_ptr<media::SkCanvasVideoRenderer> m_videoRenderer; |
95 | 93 |
96 // Each index in this array corresponds to a plane in media::VideoFrame. | 94 // Each index in this array corresponds to a plane in media::VideoFrame. |
97 FramePlane m_framePlanes[media::VideoFrame::kMaxPlanes]; | 95 FramePlane m_framePlanes[media::VideoFrame::kMaxPlanes]; |
98 }; | 96 }; |
99 | 97 |
100 } // namespace cc | 98 } // namespace cc |
101 | 99 |
102 #endif // CC_VIDEO_LAYER_IMPL_H_ | 100 #endif // CC_VIDEO_LAYER_IMPL_H_ |
OLD | NEW |