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

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

Issue 2791813003: Fix broken draw/upload paths from videos to 2D canvas and WebGL. (Closed)
Patch Set: Fix per review feedback from sandersd@. Created 3 years, 8 months 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void OnFrameClosed() override; 148 void OnFrameClosed() override;
149 void OnFrameShown() override; 149 void OnFrameShown() override;
150 void OnIdleTimeout() override; 150 void OnIdleTimeout() override;
151 void OnPlay() override; 151 void OnPlay() override;
152 void OnPause() override; 152 void OnPause() override;
153 void OnVolumeMultiplierUpdate(double multiplier) override; 153 void OnVolumeMultiplierUpdate(double multiplier) override;
154 void OnBecamePersistentVideo(bool value) override; 154 void OnBecamePersistentVideo(bool value) override;
155 155
156 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl, 156 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface* gl,
157 unsigned int texture, 157 unsigned int texture,
158 unsigned internal_format,
159 unsigned type,
158 bool premultiply_alpha, 160 bool premultiply_alpha,
159 bool flip_y) override; 161 bool flip_y) override;
160 162
161 bool texImageImpl(TexImageFunctionID functionID, 163 bool texImageImpl(TexImageFunctionID functionID,
162 unsigned target, 164 unsigned target,
163 gpu::gles2::GLES2Interface* gl, 165 gpu::gles2::GLES2Interface* gl,
164 int level, 166 int level,
165 int internalformat, 167 int internalformat,
166 unsigned format, 168 unsigned format,
167 unsigned type, 169 unsigned type,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // True if playback should be started upon the next call to OnShown(). Only 260 // True if playback should be started upon the next call to OnShown(). Only
259 // used on Android. 261 // used on Android.
260 bool should_play_upon_shown_; 262 bool should_play_upon_shown_;
261 263
262 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 264 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
263 }; 265 };
264 266
265 } // namespace content 267 } // namespace content
266 268
267 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 269 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_ms.cc » ('j') | media/renderers/skcanvas_video_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698