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

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

Issue 1315323006: webgl: optimize webgl.texSubImage2D(video) path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't use c++11 initialize-list Created 5 years, 2 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/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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 double mediaTimeForTimeValue(double timeValue) const override; 121 double mediaTimeForTimeValue(double timeValue) const override;
122 122
123 unsigned decodedFrameCount() const override; 123 unsigned decodedFrameCount() const override;
124 unsigned droppedFrameCount() const override; 124 unsigned droppedFrameCount() const override;
125 unsigned audioDecodedByteCount() const override; 125 unsigned audioDecodedByteCount() const override;
126 unsigned videoDecodedByteCount() const override; 126 unsigned videoDecodedByteCount() const override;
127 127
128 bool copyVideoTextureToPlatformTexture( 128 bool copyVideoTextureToPlatformTexture(
129 blink::WebGraphicsContext3D* web_graphics_context, 129 blink::WebGraphicsContext3D* web_graphics_context,
130 unsigned int texture, 130 const CopyVideoTextureParams& params) override;
131 unsigned int internal_format,
132 unsigned int type,
133 bool premultiply_alpha,
134 bool flip_y) override;
135 131
136 private: 132 private:
137 // The callback for VideoFrameProvider to signal a new frame is available. 133 // The callback for VideoFrameProvider to signal a new frame is available.
138 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame); 134 void OnFrameAvailable(const scoped_refptr<media::VideoFrame>& frame);
139 // Need repaint due to state change. 135 // Need repaint due to state change.
140 void RepaintInternal(); 136 void RepaintInternal();
141 137
142 // The callback for source to report error. 138 // The callback for source to report error.
143 void OnSourceError(); 139 void OnSourceError();
144 140
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 scoped_ptr<WebMediaPlayerMSCompositor> compositor_; 184 scoped_ptr<WebMediaPlayerMSCompositor> compositor_;
189 185
190 const scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; 186 const scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
191 187
192 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); 188 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS);
193 }; 189 };
194 190
195 } // namespace content 191 } // namespace content
196 192
197 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ 193 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698