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

Unified Diff: webkit/glue/media/web_video_renderer.h

Issue 5878007: Fix black video frames when seeking (which also fixes flashing poster issue). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
Index: webkit/glue/media/web_video_renderer.h
diff --git a/webkit/glue/media/web_video_renderer.h b/webkit/glue/media/web_video_renderer.h
index efd31095ed2f944a1525bc404f6bcb25f1c5f4e3..161f85d5a9b4aa7b41c048ca6743cf5119ad45ba 100644
--- a/webkit/glue/media/web_video_renderer.h
+++ b/webkit/glue/media/web_video_renderer.h
@@ -28,6 +28,17 @@ class WebVideoRenderer : public media::VideoRendererBase {
// Method called on the render thread.
virtual void SetRect(const gfx::Rect& rect) = 0;
+ // Paint the current front frame on the |bitmap|.
+ // Returns true if there was anything to render.
+ //
+ // Method called on the render thread.
+ virtual bool GetCurrentBitmap(SkBitmap* bitmap) = 0;
+
+ // Scales the given bitmap to the given canvas.
+ virtual void CopyBitmapToCanvas(const SkBitmap& bitmap,
+ skia::PlatformCanvas* canvas,
+ const gfx::Rect& dest_rect) = 0;
+
// Paint the current front frame on the |canvas| stretching it to fit the
// |dest_rect|.
//

Powered by Google App Engine
This is Rietveld 408576698