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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 2820823003: Revert "Fix the size of video textures uploaded to WebGL." (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual double mediaTimeForTimeValue(double timeValue) const = 0; 174 virtual double mediaTimeForTimeValue(double timeValue) const = 0;
175 175
176 virtual unsigned decodedFrameCount() const = 0; 176 virtual unsigned decodedFrameCount() const = 0;
177 virtual unsigned droppedFrameCount() const = 0; 177 virtual unsigned droppedFrameCount() const = 0;
178 virtual unsigned corruptedFrameCount() const { return 0; } 178 virtual unsigned corruptedFrameCount() const { return 0; }
179 virtual size_t audioDecodedByteCount() const = 0; 179 virtual size_t audioDecodedByteCount() const = 0;
180 virtual size_t videoDecodedByteCount() const = 0; 180 virtual size_t videoDecodedByteCount() const = 0;
181 181
182 virtual void paint(WebCanvas*, const WebRect&, cc::PaintFlags&) = 0; 182 virtual void paint(WebCanvas*, const WebRect&, cc::PaintFlags&) = 0;
183 183
184 // TODO(kbr): remove non-|target| version. crbug.com/349871 184 // TODO(dshwang): remove non-|target| version. crbug.com/349871
185 //
186 // Do a GPU-GPU texture copy of the natural size of the current
187 // video frame to |texture|. Caller is responsible for allocating
188 // |texture| with the appropriate size. If the copy is impossible or
189 // fails, it returns false.
190 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, 185 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
191 unsigned texture, 186 unsigned texture,
187 unsigned internalFormat,
188 unsigned type,
192 bool premultiplyAlpha, 189 bool premultiplyAlpha,
193 bool flipY) { 190 bool flipY) {
194 return false; 191 return false;
195 } 192 }
196 193
197 // TODO(kbr): when updating calling code to use this, remove the
198 // |internalFormat| and |type| parameters. crbug.com/349871
199 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it returns 194 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it returns
200 // false. 195 // false.
201 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, 196 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
202 unsigned target, 197 unsigned target,
203 unsigned texture, 198 unsigned texture,
204 unsigned internalFormat, 199 unsigned internalFormat,
205 unsigned type, 200 unsigned type,
206 int level, 201 int level,
207 bool premultiplyAlpha, 202 bool premultiplyAlpha,
208 bool flipY) { 203 bool flipY) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 277
283 virtual void enabledAudioTracksChanged( 278 virtual void enabledAudioTracksChanged(
284 const WebVector<TrackId>& enabledTrackIds) {} 279 const WebVector<TrackId>& enabledTrackIds) {}
285 // |selectedTrackId| is null if no track is selected. 280 // |selectedTrackId| is null if no track is selected.
286 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} 281 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {}
287 }; 282 };
288 283
289 } // namespace blink 284 } // namespace blink
290 285
291 #endif 286 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698