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

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

Issue 1152733008: remove |level| in copyVideoTextureToPlatformTexture(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 /* 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 virtual unsigned decodedFrameCount() const = 0; 144 virtual unsigned decodedFrameCount() const = 0;
145 virtual unsigned droppedFrameCount() const = 0; 145 virtual unsigned droppedFrameCount() const = 0;
146 virtual unsigned corruptedFrameCount() const { return 0; } 146 virtual unsigned corruptedFrameCount() const { return 0; }
147 virtual unsigned audioDecodedByteCount() const = 0; 147 virtual unsigned audioDecodedByteCount() const = 0;
148 virtual unsigned videoDecodedByteCount() const = 0; 148 virtual unsigned videoDecodedByteCount() const = 0;
149 149
150 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermo de::Mode) = 0; 150 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermo de::Mode) = 0;
151 // Do a GPU-GPU textures copy if possible. 151 // Do a GPU-GPU textures copy if possible.
152 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult iplyAlpha, bool flipY) { return false; } 152 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult iplyAlpha, bool flipY) { return false; }
153 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; }
153 154
154 virtual WebAudioSourceProvider* audioSourceProvider() { return nullptr; } 155 virtual WebAudioSourceProvider* audioSourceProvider() { return nullptr; }
155 156
156 // Returns whether keySystem is supported. If true, the result will be 157 // Returns whether keySystem is supported. If true, the result will be
157 // reported by an event. 158 // reported by an event.
158 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK eySystemNotSupported; } 159 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK eySystemNotSupported; }
159 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataL ength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupport ed; } 160 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataL ength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupport ed; }
160 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } 161 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; }
161 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry ptionModuleExceptionNotSupportedError, 0, "ERROR"); } 162 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry ptionModuleExceptionNotSupportedError, 0, "ERROR"); }
162 163
163 // Sets the poster image URL. 164 // Sets the poster image URL.
164 virtual void setPoster(const WebURL& poster) { } 165 virtual void setPoster(const WebURL& poster) { }
165 166
166 // Instruct WebMediaPlayer to enter/exit fullscreen. 167 // Instruct WebMediaPlayer to enter/exit fullscreen.
167 virtual void enterFullscreen() { } 168 virtual void enterFullscreen() { }
168 169
169 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } 170 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { }
170 // |selectedTrackId| is null if no track is selected. 171 // |selectedTrackId| is null if no track is selected.
171 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } 172 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { }
172 }; 173 };
173 174
174 } // namespace blink 175 } // namespace blink
175 176
176 #endif 177 #endif
OLDNEW
« Source/core/html/HTMLVideoElement.cpp ('K') | « Source/platform/graphics/gpu/Extensions3DUtil.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698