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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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/public/platform/WebDisplayItemList.h ('k') | ui/compositor/paint_context.h » ('j') | 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 20 matching lines...) Expand all
31 #ifndef WebMediaPlayer_h 31 #ifndef WebMediaPlayer_h
32 #define WebMediaPlayer_h 32 #define WebMediaPlayer_h
33 33
34 #include "WebCallbacks.h" 34 #include "WebCallbacks.h"
35 #include "WebCanvas.h" 35 #include "WebCanvas.h"
36 #include "WebContentDecryptionModule.h" 36 #include "WebContentDecryptionModule.h"
37 #include "WebMediaSource.h" 37 #include "WebMediaSource.h"
38 #include "WebSetSinkIdCallbacks.h" 38 #include "WebSetSinkIdCallbacks.h"
39 #include "WebString.h" 39 #include "WebString.h"
40 40
41 class SkPaint;
42
43 namespace gpu { 41 namespace gpu {
44 namespace gles2 { 42 namespace gles2 {
45 class GLES2Interface; 43 class GLES2Interface;
46 } 44 }
47 } 45 }
48 46
49 namespace blink { 47 namespace blink {
50 48
51 class WebAudioSourceProvider; 49 class WebAudioSourceProvider;
52 class WebContentDecryptionModule; 50 class WebContentDecryptionModule;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 virtual bool didPassCORSAccessCheck() const = 0; 162 virtual bool didPassCORSAccessCheck() const = 0;
165 163
166 virtual double mediaTimeForTimeValue(double timeValue) const = 0; 164 virtual double mediaTimeForTimeValue(double timeValue) const = 0;
167 165
168 virtual unsigned decodedFrameCount() const = 0; 166 virtual unsigned decodedFrameCount() const = 0;
169 virtual unsigned droppedFrameCount() const = 0; 167 virtual unsigned droppedFrameCount() const = 0;
170 virtual unsigned corruptedFrameCount() const { return 0; } 168 virtual unsigned corruptedFrameCount() const { return 0; }
171 virtual size_t audioDecodedByteCount() const = 0; 169 virtual size_t audioDecodedByteCount() const = 0;
172 virtual size_t videoDecodedByteCount() const = 0; 170 virtual size_t videoDecodedByteCount() const = 0;
173 171
174 virtual void paint(WebCanvas*, const WebRect&, SkPaint&) = 0; 172 virtual void paint(WebCanvas*, const WebRect&, CdlPaint&) = 0;
175 173
176 // TODO(dshwang): remove non-|target| version. crbug.com/349871 174 // TODO(dshwang): remove non-|target| version. crbug.com/349871
177 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, 175 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
178 unsigned texture, 176 unsigned texture,
179 unsigned internalFormat, 177 unsigned internalFormat,
180 unsigned type, 178 unsigned type,
181 bool premultiplyAlpha, 179 bool premultiplyAlpha,
182 bool flipY) { 180 bool flipY) {
183 return false; 181 return false;
184 } 182 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 233
236 virtual void enabledAudioTracksChanged( 234 virtual void enabledAudioTracksChanged(
237 const WebVector<TrackId>& enabledTrackIds) {} 235 const WebVector<TrackId>& enabledTrackIds) {}
238 // |selectedTrackId| is null if no track is selected. 236 // |selectedTrackId| is null if no track is selected.
239 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} 237 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {}
240 }; 238 };
241 239
242 } // namespace blink 240 } // namespace blink
243 241
244 #endif 242 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebDisplayItemList.h ('k') | ui/compositor/paint_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698