OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual bool hasSingleSecurityOrigin() const; | 110 virtual bool hasSingleSecurityOrigin() const; |
111 virtual bool didPassCORSAccessCheck() const; | 111 virtual bool didPassCORSAccessCheck() const; |
112 | 112 |
113 virtual double mediaTimeForTimeValue(double timeValue) const; | 113 virtual double mediaTimeForTimeValue(double timeValue) const; |
114 | 114 |
115 virtual unsigned decodedFrameCount() const; | 115 virtual unsigned decodedFrameCount() const; |
116 virtual unsigned droppedFrameCount() const; | 116 virtual unsigned droppedFrameCount() const; |
117 virtual unsigned audioDecodedByteCount() const; | 117 virtual unsigned audioDecodedByteCount() const; |
118 virtual unsigned videoDecodedByteCount() const; | 118 virtual unsigned videoDecodedByteCount() const; |
119 | 119 |
120 bool copyVideoTextureToPlatformTexture( | 120 // TODO(dshwang): remove it. virtual trick allows to remove it in blink. |
| 121 // crbug.com/504773 |
| 122 virtual bool copyVideoTextureToPlatformTexture( |
121 blink::WebGraphicsContext3D* web_graphics_context, | 123 blink::WebGraphicsContext3D* web_graphics_context, |
122 unsigned int texture, | 124 unsigned int texture, |
123 unsigned int internal_format, | 125 unsigned int internal_format, |
124 unsigned int type, | 126 unsigned int type, |
125 bool premultiply_alpha, | 127 bool premultiply_alpha, |
| 128 bool flip_y); |
| 129 |
| 130 bool copyVideoTextureToPlatformTexture( |
| 131 blink::WebGraphicsContext3D* web_graphics_context, |
| 132 unsigned int target, |
| 133 unsigned int texture, |
| 134 unsigned int internal_format, |
| 135 unsigned int type, |
| 136 int level, |
| 137 bool premultiply_alpha, |
| 138 bool flip_y) override; |
| 139 bool copyVideoSubTextureToPlatformTexture( |
| 140 blink::WebGraphicsContext3D* web_graphics_context, |
| 141 unsigned int target, |
| 142 unsigned int texture, |
| 143 int level, |
| 144 int xoffset, |
| 145 int yoffset, |
| 146 bool premultiply_alpha, |
126 bool flip_y) override; | 147 bool flip_y) override; |
127 | 148 |
128 // VideoFrameProvider implementation. | 149 // VideoFrameProvider implementation. |
129 void SetVideoFrameProviderClient( | 150 void SetVideoFrameProviderClient( |
130 cc::VideoFrameProvider::Client* client) override; | 151 cc::VideoFrameProvider::Client* client) override; |
131 bool UpdateCurrentFrame(base::TimeTicks deadline_min, | 152 bool UpdateCurrentFrame(base::TimeTicks deadline_min, |
132 base::TimeTicks deadline_max) override; | 153 base::TimeTicks deadline_max) override; |
133 bool HasCurrentFrame() override; | 154 bool HasCurrentFrame() override; |
134 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; | 155 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; |
135 void PutCurrentFrame() override; | 156 void PutCurrentFrame() override; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 222 |
202 // Used for DCHECKs to ensure methods calls executed in the correct thread. | 223 // Used for DCHECKs to ensure methods calls executed in the correct thread. |
203 base::ThreadChecker thread_checker_; | 224 base::ThreadChecker thread_checker_; |
204 | 225 |
205 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 226 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
206 }; | 227 }; |
207 | 228 |
208 } // namespace content | 229 } // namespace content |
209 | 230 |
210 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 231 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |