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

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

Issue 972833004: Revert of gpu: introduce glCopySubTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 "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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual bool hasSingleSecurityOrigin() const; 107 virtual bool hasSingleSecurityOrigin() const;
108 virtual bool didPassCORSAccessCheck() const; 108 virtual bool didPassCORSAccessCheck() const;
109 109
110 virtual double mediaTimeForTimeValue(double timeValue) const; 110 virtual double mediaTimeForTimeValue(double timeValue) const;
111 111
112 virtual unsigned decodedFrameCount() const; 112 virtual unsigned decodedFrameCount() const;
113 virtual unsigned droppedFrameCount() const; 113 virtual unsigned droppedFrameCount() const;
114 virtual unsigned audioDecodedByteCount() const; 114 virtual unsigned audioDecodedByteCount() const;
115 virtual unsigned videoDecodedByteCount() const; 115 virtual unsigned videoDecodedByteCount() const;
116 116
117 // TODO(dshwang): remove |level|. crbug.com/443151
118 bool copyVideoTextureToPlatformTexture( 117 bool copyVideoTextureToPlatformTexture(
119 blink::WebGraphicsContext3D* web_graphics_context, 118 blink::WebGraphicsContext3D* web_graphics_context,
120 unsigned int texture, 119 unsigned int texture,
121 unsigned int level, 120 unsigned int level,
122 unsigned int internal_format, 121 unsigned int internal_format,
123 unsigned int type, 122 unsigned int type,
124 bool premultiply_alpha, 123 bool premultiply_alpha,
125 bool flip_y) override; 124 bool flip_y) override;
126 virtual bool copyVideoTextureToPlatformTexture(
127 blink::WebGraphicsContext3D* web_graphics_context,
128 unsigned int texture,
129 unsigned int internal_format,
130 unsigned int type,
131 bool premultiply_alpha,
132 bool flip_y);
133 125
134 // VideoFrameProvider implementation. 126 // VideoFrameProvider implementation.
135 void SetVideoFrameProviderClient( 127 void SetVideoFrameProviderClient(
136 cc::VideoFrameProvider::Client* client) override; 128 cc::VideoFrameProvider::Client* client) override;
137 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; 129 scoped_refptr<media::VideoFrame> GetCurrentFrame() override;
138 void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) override; 130 void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) override;
139 131
140 private: 132 private:
141 // The callback for VideoFrameProvider to signal a new frame is available. 133 // The callback for VideoFrameProvider to signal a new frame is available.
142 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); 134 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 scoped_refptr<media::MediaLog> media_log_; 197 scoped_refptr<media::MediaLog> media_log_;
206 198
207 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; 199 scoped_ptr<MediaStreamRendererFactory> renderer_factory_;
208 200
209 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 201 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
210 }; 202 };
211 203
212 } // namespace content 204 } // namespace content
213 205
214 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 206 #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