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

Unified Diff: cc/quads/stream_video_draw_quad.h

Issue 2683763003: cc: make resource keep video buffer format for hardware overlay.
Patch Set: plumbing video format to ozone Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: cc/quads/stream_video_draw_quad.h
diff --git a/cc/quads/stream_video_draw_quad.h b/cc/quads/stream_video_draw_quad.h
index 68f3bffd87c8723158977816ec52614e82058930..27cd1747830e65e15dfcad11ae6ba3e3da1bc805 100644
--- a/cc/quads/stream_video_draw_quad.h
+++ b/cc/quads/stream_video_draw_quad.h
@@ -11,6 +11,7 @@
#include "cc/base/cc_export.h"
#include "cc/quads/draw_quad.h"
+#include "ui/gfx/buffer_types.h"
#include "ui/gfx/transform.h"
namespace cc {
@@ -27,6 +28,7 @@ class CC_EXPORT StreamVideoDrawQuad : public DrawQuad {
const gfx::Rect& visible_rect,
unsigned resource_id,
gfx::Size resource_size_in_pixels,
+ gfx::BufferFormat format,
const gfx::Transform& matrix);
void SetAll(const SharedQuadState* shared_quad_state,
@@ -36,8 +38,10 @@ class CC_EXPORT StreamVideoDrawQuad : public DrawQuad {
bool needs_blending,
unsigned resource_id,
gfx::Size resource_size_in_pixels,
+ gfx::BufferFormat format,
const gfx::Transform& matrix);
+ gfx::BufferFormat format = gfx::BufferFormat::RGBA_8888;
gfx::Transform matrix;
struct OverlayResources {

Powered by Google App Engine
This is Rietveld 408576698