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

Unified Diff: cc/quads/tile_draw_quad.cc

Issue 1380653003: Mac Overlays: Allow SolidColor and Tile quads to be candidates for overlays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@AllOrNothing2
Patch Set: Plumb allow_overlay 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
Index: cc/quads/tile_draw_quad.cc
diff --git a/cc/quads/tile_draw_quad.cc b/cc/quads/tile_draw_quad.cc
index 02c4a1e25a5f9f175be4c66e389a8a914cda6564..d8e10a7f22dc3d79bae267a4c8b9d48799e35bca 100644
--- a/cc/quads/tile_draw_quad.cc
+++ b/cc/quads/tile_draw_quad.cc
@@ -24,7 +24,8 @@ void TileDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
const gfx::RectF& tex_coord_rect,
const gfx::Size& texture_size,
bool swizzle_contents,
- bool nearest_neighbor) {
+ bool nearest_neighbor,
+ bool allow_overlay) {
ContentDrawQuadBase::SetNew(shared_quad_state,
DrawQuad::TILED_CONTENT,
rect,
@@ -33,7 +34,8 @@ void TileDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
tex_coord_rect,
texture_size,
swizzle_contents,
- nearest_neighbor);
+ nearest_neighbor,
+ allow_overlay);
resources.ids[kResourceIdIndex] = resource_id;
resources.count = 1;
}
@@ -47,11 +49,12 @@ void TileDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
const gfx::RectF& tex_coord_rect,
const gfx::Size& texture_size,
bool swizzle_contents,
- bool nearest_neighbor) {
+ bool nearest_neighbor,
+ bool allow_overlay) {
ContentDrawQuadBase::SetAll(shared_quad_state, DrawQuad::TILED_CONTENT, rect,
opaque_rect, visible_rect, needs_blending,
tex_coord_rect, texture_size, swizzle_contents,
- nearest_neighbor);
+ nearest_neighbor, allow_overlay);
resources.ids[kResourceIdIndex] = resource_id;
resources.count = 1;
}

Powered by Google App Engine
This is Rietveld 408576698