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

Side by Side Diff: content/renderer/media/webmediaplayer_ms.h

Issue 1420843005: Revert of "webgl: optimize webgl.texSubImage2D(video) path." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 double mediaTimeForTimeValue(double timeValue) const override; 128 double mediaTimeForTimeValue(double timeValue) const override;
129 129
130 unsigned decodedFrameCount() const override; 130 unsigned decodedFrameCount() const override;
131 unsigned droppedFrameCount() const override; 131 unsigned droppedFrameCount() const override;
132 unsigned audioDecodedByteCount() const override; 132 unsigned audioDecodedByteCount() const override;
133 unsigned videoDecodedByteCount() const override; 133 unsigned videoDecodedByteCount() const override;
134 134
135 bool copyVideoTextureToPlatformTexture( 135 bool copyVideoTextureToPlatformTexture(
136 blink::WebGraphicsContext3D* web_graphics_context, 136 blink::WebGraphicsContext3D* web_graphics_context,
137 const CopyVideoTextureParams& params) override; 137 unsigned int texture,
138 unsigned int internal_format,
139 unsigned int type,
140 bool premultiply_alpha,
141 bool flip_y) override;
138 142
139 private: 143 private:
140 // The callback for VideoFrameProvider to signal a new frame is available. 144 // The callback for VideoFrameProvider to signal a new frame is available.
141 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); 145 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame);
142 // Need repaint due to state change. 146 // Need repaint due to state change.
143 void RepaintInternal(); 147 void RepaintInternal();
144 148
145 // The callback for source to report error. 149 // The callback for source to report error.
146 void OnSourceError(); 150 void OnSourceError();
147 151
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 198
195 const std::string initial_audio_output_device_id_; 199 const std::string initial_audio_output_device_id_;
196 const url::Origin initial_security_origin_; 200 const url::Origin initial_security_origin_;
197 201
198 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 202 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
199 }; 203 };
200 204
201 } // namespace content 205 } // namespace content
202 206
203 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 207 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/android/webmediaplayer_android.cc ('k') | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698