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

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

Issue 1747593002: Change the type for byte counts to size_t in WebMediaPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made changes in the unittests Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLVideoElementTest.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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual bool didLoadingProgress() = 0; 149 virtual bool didLoadingProgress() = 0;
150 150
151 virtual bool hasSingleSecurityOrigin() const = 0; 151 virtual bool hasSingleSecurityOrigin() const = 0;
152 virtual bool didPassCORSAccessCheck() const = 0; 152 virtual bool didPassCORSAccessCheck() const = 0;
153 153
154 virtual double mediaTimeForTimeValue(double timeValue) const = 0; 154 virtual double mediaTimeForTimeValue(double timeValue) const = 0;
155 155
156 virtual unsigned decodedFrameCount() const = 0; 156 virtual unsigned decodedFrameCount() const = 0;
157 virtual unsigned droppedFrameCount() const = 0; 157 virtual unsigned droppedFrameCount() const = 0;
158 virtual unsigned corruptedFrameCount() const { return 0; } 158 virtual unsigned corruptedFrameCount() const { return 0; }
159 virtual unsigned audioDecodedByteCount() const = 0; 159 virtual size_t audioDecodedByteCount() const = 0;
160 virtual unsigned videoDecodedByteCount() const = 0; 160 virtual size_t videoDecodedByteCount() const = 0;
161 161
162 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermo de::Mode) = 0; 162 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermo de::Mode) = 0;
163 163
164 // TODO(dshwang): remove non-|target| version. crbug.com/349871 164 // TODO(dshwang): remove non-|target| version. crbug.com/349871
165 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; } 165 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned internalFormat, unsigned type, bool premultiplyAlpha, bool flipY) { return false; }
166 166
167 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it return s false. 167 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it return s false.
168 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed target, 168 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed target,
169 unsigned texture, unsigned internalFormat, unsigned type, int level, 169 unsigned texture, unsigned internalFormat, unsigned type, int level,
170 bool premultiplyAlpha, bool flipY) { return false; } 170 bool premultiplyAlpha, bool flipY) { return false; }
(...skipping 19 matching lines...) Expand all
190 virtual void exitedFullscreen() { } 190 virtual void exitedFullscreen() { }
191 191
192 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } 192 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { }
193 // |selectedTrackId| is null if no track is selected. 193 // |selectedTrackId| is null if no track is selected.
194 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } 194 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { }
195 }; 195 };
196 196
197 } // namespace blink 197 } // namespace blink
198 198
199 #endif 199 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698