| Index: cc/quads/texture_draw_quad.h
|
| diff --git a/cc/quads/texture_draw_quad.h b/cc/quads/texture_draw_quad.h
|
| index 3f8592069620b5010e1c1a0353ad41b485289d78..40c7623c5cd358fecb0854b07ac544961a439b98 100644
|
| --- a/cc/quads/texture_draw_quad.h
|
| +++ b/cc/quads/texture_draw_quad.h
|
| @@ -35,6 +35,8 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
|
| const gfx::Rect& visible_rect,
|
| 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,
|
| @@ -51,7 +53,27 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
|
| bool y_flipped;
|
| bool nearest_neighbor;
|
|
|
| + struct OverlayResources {
|
| + OverlayResources();
|
| +
|
| + gfx::Size size_in_pixels[Resources::kMaxResourceIdCount];
|
| + bool allow_overlay[Resources::kMaxResourceIdCount];
|
| + };
|
| + OverlayResources overlay_resources;
|
| +
|
| ResourceId resource_id() const { return resources.ids[kResourceIdIndex]; }
|
| + const gfx::Size& resource_size_in_pixels() const {
|
| + return overlay_resources.size_in_pixels[kResourceIdIndex];
|
| + }
|
| + 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*);
|
|
|
|
|