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

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

Issue 1418513016: 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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 double mediaTimeForTimeValue(double timeValue) const override; 122 double mediaTimeForTimeValue(double timeValue) const override;
123 123
124 unsigned decodedFrameCount() const override; 124 unsigned decodedFrameCount() const override;
125 unsigned droppedFrameCount() const override; 125 unsigned droppedFrameCount() const override;
126 unsigned audioDecodedByteCount() const override; 126 unsigned audioDecodedByteCount() const override;
127 unsigned videoDecodedByteCount() const override; 127 unsigned videoDecodedByteCount() const override;
128 128
129 bool copyVideoTextureToPlatformTexture( 129 bool copyVideoTextureToPlatformTexture(
130 blink::WebGraphicsContext3D* web_graphics_context, 130 blink::WebGraphicsContext3D* web_graphics_context,
131 const CopyVideoTextureParams& params) override; 131 unsigned int texture,
132 unsigned int internal_format,
133 unsigned int type,
134 bool premultiply_alpha,
135 bool flip_y) override;
132 136
133 private: 137 private:
134 // The callback for VideoFrameProvider to signal a new frame is available. 138 // The callback for VideoFrameProvider to signal a new frame is available.
135 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); 139 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame);
136 // Need repaint due to state change. 140 // Need repaint due to state change.
137 void RepaintInternal(); 141 void RepaintInternal();
138 142
139 // The callback for source to report error. 143 // The callback for source to report error.
140 void OnSourceError(); 144 void OnSourceError();
141 145
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 scoped_ptr<WebMediaPlayerMSCompositor> compositor_; 189 scoped_ptr<WebMediaPlayerMSCompositor> compositor_;
186 190
187 const scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; 191 const scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
188 192
189 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 193 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
190 }; 194 };
191 195
192 } // namespace content 196 } // namespace content
193 197
194 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 198 #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