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

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: add TODO 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
« no previous file with comments | « Source/platform/graphics/gpu/Extensions3DUtil.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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual double mediaTimeForTimeValue(double timeValue) const = 0; 142 virtual double mediaTimeForTimeValue(double timeValue) const = 0;
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 internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; }
153 // TODO(dshwang): Remove it after cleaning up in chromium side. crbug.com/44 3151
152 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult iplyAlpha, bool flipY) { return false; } 154 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult iplyAlpha, bool flipY) { return false; }
153 155
154 virtual WebAudioSourceProvider* audioSourceProvider() { return nullptr; } 156 virtual WebAudioSourceProvider* audioSourceProvider() { return nullptr; }
155 157
156 // Returns whether keySystem is supported. If true, the result will be 158 // Returns whether keySystem is supported. If true, the result will be
157 // reported by an event. 159 // reported by an event.
158 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK eySystemNotSupported; } 160 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; } 161 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; } 162 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"); } 163 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry ptionModuleExceptionNotSupportedError, 0, "ERROR"); }
162 164
163 // Sets the poster image URL. 165 // Sets the poster image URL.
164 virtual void setPoster(const WebURL& poster) { } 166 virtual void setPoster(const WebURL& poster) { }
165 167
166 // Instruct WebMediaPlayer to enter/exit fullscreen. 168 // Instruct WebMediaPlayer to enter/exit fullscreen.
167 virtual void enterFullscreen() { } 169 virtual void enterFullscreen() { }
168 170
169 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } 171 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { }
170 // |selectedTrackId| is null if no track is selected. 172 // |selectedTrackId| is null if no track is selected.
171 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } 173 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { }
172 }; 174 };
173 175
174 } // namespace blink 176 } // namespace blink
175 177
176 #endif 178 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/gpu/Extensions3DUtil.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698