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

Unified Diff: cc/quads/texture_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/stream_video_draw_quad.cc ('k') | cc/quads/texture_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/texture_draw_quad.h
diff --git a/cc/quads/texture_draw_quad.h b/cc/quads/texture_draw_quad.h
index 40c7623c5cd358fecb0854b07ac544961a439b98..9b9fab95ddd892cc63b356f88f58862206d51484 100644
--- a/cc/quads/texture_draw_quad.h
+++ b/cc/quads/texture_draw_quad.h
@@ -36,7 +36,6 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
bool needs_blending,
unsigned resource_id,
gfx::Size resource_size_in_pixels,
- bool allow_overlay,
bool premultiplied_alpha,
const gfx::PointF& uv_top_left,
const gfx::PointF& uv_bottom_right,
@@ -57,7 +56,6 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
OverlayResources();
gfx::Size size_in_pixels[Resources::kMaxResourceIdCount];
- bool allow_overlay[Resources::kMaxResourceIdCount];
};
OverlayResources overlay_resources;
@@ -68,12 +66,6 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
void set_resource_size_in_pixels(const gfx::Size& size_in_pixels) {
overlay_resources.size_in_pixels[kResourceIdIndex] = size_in_pixels;
}
- bool allow_overlay() const {
- return overlay_resources.allow_overlay[kResourceIdIndex];
- }
- void set_allow_overlay(bool allow_overlay) {
- overlay_resources.allow_overlay[kResourceIdIndex] = allow_overlay;
- }
static const TextureDrawQuad* MaterialCast(const DrawQuad*);
« no previous file with comments | « cc/quads/stream_video_draw_quad.cc ('k') | cc/quads/texture_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698