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

Unified Diff: media/gpu/dxva_picture_buffer_win.h

Issue 2495753002: Reenable idle suspension of media elements on Windows. (Closed)
Patch Set: add comment Created 4 years, 1 month 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
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/gpu/dxva_picture_buffer_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/dxva_picture_buffer_win.h
diff --git a/media/gpu/dxva_picture_buffer_win.h b/media/gpu/dxva_picture_buffer_win.h
index da658a95fa079b267f8584646a4cf3bb46a4ed91..959504fec69281bf4aa2098ffe8c20618575f85d 100644
--- a/media/gpu/dxva_picture_buffer_win.h
+++ b/media/gpu/dxva_picture_buffer_win.h
@@ -17,6 +17,7 @@
#include "third_party/angle/include/EGL/egl.h"
#include "third_party/angle/include/EGL/eglext.h"
#include "ui/gl/gl_fence.h"
+#include "ui/gl/gl_image.h"
interface IMFSample;
@@ -53,6 +54,8 @@ class DXVAPictureBuffer {
gfx::Size size() const { return picture_buffer_.size(); }
void set_bound();
+ scoped_refptr<gl::GLImage> gl_image() { return gl_image_; }
+
const gfx::ColorSpace& color_space() const { return color_space_; }
void set_color_space(const gfx::ColorSpace& color_space) {
color_space_ = color_space;
@@ -73,6 +76,7 @@ class DXVAPictureBuffer {
State state_ = UNUSED;
PictureBuffer picture_buffer_;
gfx::ColorSpace color_space_;
+ scoped_refptr<gl::GLImage> gl_image_;
DISALLOW_COPY_AND_ASSIGN(DXVAPictureBuffer);
};
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/gpu/dxva_picture_buffer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698