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

Unified Diff: cc/quads/stream_video_draw_quad.h

Issue 1387283002: cc: Remove redundant is_overlay arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo changes on overlay_strategy_single_on_top.cc Created 5 years, 2 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
« no previous file with comments | « cc/quads/io_surface_draw_quad.cc ('k') | cc/quads/stream_video_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 519c35363ed59c955cfaecefa8e865e5c6656564..1044fdc19b84566e1c3a7de7e74a87fa8fb5dfdd 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;
« no previous file with comments | « cc/quads/io_surface_draw_quad.cc ('k') | cc/quads/stream_video_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698