diff options
author | ccameron <ccameron@chromium.org> | 2015-10-08 13:23:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-08 20:24:49 +0000 |
commit | 268c09fdae64b08957aba9b31797adb93525c90f (patch) | |
tree | f20a976b0b530e6338c631e8cd8cb6f29147458f /cc/quads/stream_video_draw_quad.h | |
parent | 0cd4698d5a49b556b859909210287b5019e84542 (diff) | |
download | chromium_src-268c09fdae64b08957aba9b31797adb93525c90f.zip chromium_src-268c09fdae64b08957aba9b31797adb93525c90f.tar.gz chromium_src-268c09fdae64b08957aba9b31797adb93525c90f.tar.bz2 |
cc: Remove redundant overlay arguments
Whether or not a quad can be made into an overlay is dependent on
whether there is a GLImage backing the texture resources that the quad
uses.
Prior to this patch, this information was passed along to the layer or
quad via a side-channel, in the form of a "allow overlay" argument.
Now, store this information in the cc::Resource, in particular, through
the cc::TextureMailbox that it is created from, and have the overlay
strategy query the property of the cc::Resource.
Add appropriate plumbing of the parameters from the cc::TextureMailbox,
through the cc::Resource, to cc::TransferableResource, and finally to
a cc::Resource in other compositors.
R=reveman,fsamuel,dcheng
TBR=danakj
BUG=533690
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1387283002
Cr-Commit-Position: refs/heads/master@{#353128}
Diffstat (limited to 'cc/quads/stream_video_draw_quad.h')
-rw-r--r-- | cc/quads/stream_video_draw_quad.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cc/quads/stream_video_draw_quad.h b/cc/quads/stream_video_draw_quad.h index 519c353..1044fdc 100644 --- a/cc/quads/stream_video_draw_quad.h +++ b/cc/quads/stream_video_draw_quad.h @@ -22,7 +22,6 @@ class CC_EXPORT StreamVideoDrawQuad : public DrawQuad { const gfx::Rect& visible_rect, unsigned resource_id, gfx::Size resource_size_in_pixels, - bool allow_overlay, const gfx::Transform& matrix); void SetAll(const SharedQuadState* shared_quad_state, @@ -32,16 +31,13 @@ class CC_EXPORT StreamVideoDrawQuad : public DrawQuad { bool needs_blending, unsigned resource_id, gfx::Size resource_size_in_pixels, - bool allow_overlay, const gfx::Transform& matrix); gfx::Transform matrix; struct OverlayResources { OverlayResources(); - gfx::Size size_in_pixels[Resources::kMaxResourceIdCount]; - bool allow_overlay[Resources::kMaxResourceIdCount]; }; OverlayResources overlay_resources; @@ -51,9 +47,6 @@ class CC_EXPORT StreamVideoDrawQuad : public DrawQuad { const gfx::Size& resource_size_in_pixels() const { return overlay_resources.size_in_pixels[kResourceIdIndex]; } - bool allow_overlay() const { - return overlay_resources.allow_overlay[kResourceIdIndex]; - } private: static const size_t kResourceIdIndex = 0; |