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 <public/WebVideoFrameProvider.h> | 8 #include <public/WebVideoFrameProvider.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 virtual void willDraw(ResourceProvider*) OVERRIDE; | 44 virtual void willDraw(ResourceProvider*) OVERRIDE; |
45 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; | 45 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; |
46 virtual void didDraw(ResourceProvider*) OVERRIDE; | 46 virtual void didDraw(ResourceProvider*) OVERRIDE; |
47 | 47 |
48 // WebKit::WebVideoFrameProvider::Client implementation. | 48 // WebKit::WebVideoFrameProvider::Client implementation. |
49 virtual void stopUsingProvider(); // Callable on any thread. | 49 virtual void stopUsingProvider(); // Callable on any thread. |
50 virtual void didReceiveFrame(); // Callable on impl thread. | 50 virtual void didReceiveFrame(); // Callable on impl thread. |
51 virtual void didUpdateMatrix(const float*); // Callable on impl thread. | 51 virtual void didUpdateMatrix(const float*); // Callable on impl thread. |
52 | 52 |
53 virtual void didLoseContext() OVERRIDE; | 53 virtual void didLoseOutputSurface() OVERRIDE; |
54 | 54 |
55 void setNeedsRedraw(); | 55 void setNeedsRedraw(); |
56 | 56 |
57 struct FramePlane { | 57 struct FramePlane { |
58 ResourceProvider::ResourceId resourceId; | 58 ResourceProvider::ResourceId resourceId; |
59 gfx::Size size; | 59 gfx::Size size; |
60 GLenum format; | 60 GLenum format; |
61 | 61 |
62 FramePlane() : resourceId(0) { } | 62 FramePlane() : resourceId(0) { } |
63 | 63 |
(...skipping 27 matching lines...) Expand all Loading... |
91 ResourceProvider::ResourceId m_externalTextureResource; | 91 ResourceProvider::ResourceId m_externalTextureResource; |
92 scoped_ptr<media::SkCanvasVideoRenderer> m_videoRenderer; | 92 scoped_ptr<media::SkCanvasVideoRenderer> m_videoRenderer; |
93 | 93 |
94 // 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. |
95 FramePlane m_framePlanes[media::VideoFrame::kMaxPlanes]; | 95 FramePlane m_framePlanes[media::VideoFrame::kMaxPlanes]; |
96 }; | 96 }; |
97 | 97 |
98 } // namespace cc | 98 } // namespace cc |
99 | 99 |
100 #endif // CC_VIDEO_LAYER_IMPL_H_ | 100 #endif // CC_VIDEO_LAYER_IMPL_H_ |
OLD | NEW |