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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Re-add ios changes Created 3 years, 11 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 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; 41 #include "cc/paint/paint_flags.h"
42 42
43 namespace gpu { 43 namespace gpu {
44 namespace gles2 { 44 namespace gles2 {
45 class GLES2Interface; 45 class GLES2Interface;
46 } 46 }
47 } 47 }
48 48
49 namespace blink { 49 namespace blink {
50 50
51 class WebAudioSourceProvider; 51 class WebAudioSourceProvider;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 virtual bool didPassCORSAccessCheck() const = 0; 172 virtual bool didPassCORSAccessCheck() const = 0;
173 173
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&, SkPaint&) = 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(kbr): remove non-|target| version. crbug.com/349871
185 // 185 //
186 // Do a GPU-GPU texture copy of the natural size of the current 186 // Do a GPU-GPU texture copy of the natural size of the current
187 // video frame to |texture|. Caller is responsible for allocating 187 // video frame to |texture|. Caller is responsible for allocating
188 // |texture| with the appropriate size. If the copy is impossible or 188 // |texture| with the appropriate size. If the copy is impossible or
189 // fails, it returns false. 189 // fails, it returns false.
190 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, 190 virtual bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*,
191 unsigned texture, 191 unsigned texture,
192 bool premultiplyAlpha, 192 bool premultiplyAlpha,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 virtual void enabledAudioTracksChanged( 275 virtual void enabledAudioTracksChanged(
276 const WebVector<TrackId>& enabledTrackIds) {} 276 const WebVector<TrackId>& enabledTrackIds) {}
277 // |selectedTrackId| is null if no track is selected. 277 // |selectedTrackId| is null if no track is selected.
278 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} 278 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {}
279 }; 279 };
280 280
281 } // namespace blink 281 } // namespace blink
282 282
283 #endif 283 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698