Chromium Code Reviews| Index: cc/trees/layer_tree_host_unittest.cc |
| diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc |
| index 01c5a184e5a51f291be96a8fd0b3f17e5225107a..6108aaf2e6bc14fc0ab6f4c8baabb05a0a823034 100644 |
| --- a/cc/trees/layer_tree_host_unittest.cc |
| +++ b/cc/trees/layer_tree_host_unittest.cc |
| @@ -1240,8 +1240,11 @@ class TestOpacityChangeLayerDelegate : public ContentLayerClient { |
| void SetTestLayer(Layer* test_layer) { test_layer_ = test_layer; } |
| - virtual void PaintContents(SkCanvas*, const gfx::Rect&, |
| - gfx::RectF*) OVERRIDE { |
| + virtual void PaintContents( |
| + SkCanvas*, |
|
danakj
2014/05/01 17:07:11
mind giving these variables names while you're her
Stephen Chennney
2014/05/01 19:12:26
I finally found the reference to this in the Googl
|
| + const gfx::Rect&, |
| + gfx::RectF*, |
| + ContentLayerClient::GraphicsContextStatus) OVERRIDE { |
| // Set layer opacity to 0. |
| if (test_layer_) |
| test_layer_->SetOpacity(0.f); |
| @@ -2521,9 +2524,11 @@ class LayerTreeHostTestLCDNotification : public LayerTreeHostTest { |
| int paint_count() const { return paint_count_; } |
| int lcd_notification_count() const { return lcd_notification_count_; } |
| - virtual void PaintContents(SkCanvas* canvas, |
| - const gfx::Rect& clip, |
| - gfx::RectF* opaque) OVERRIDE { |
| + virtual void PaintContents( |
| + SkCanvas* canvas, |
| + const gfx::Rect& clip, |
| + gfx::RectF* opaque, |
| + ContentLayerClient::GraphicsContextStatus) OVERRIDE { |
|
danakj
2014/05/01 17:07:11
please give the variable a name always
Stephen Chennney
2014/05/01 19:12:26
Done.
|
| ++paint_count_; |
| } |
| virtual void DidChangeLayerCanUseLCDText() OVERRIDE { |
| @@ -2762,9 +2767,11 @@ class LayerTreeHostTestChangeLayerPropertiesInPaintContents |
| void set_layer(Layer* layer) { layer_ = layer; } |
| - virtual void PaintContents(SkCanvas* canvas, |
| - const gfx::Rect& clip, |
| - gfx::RectF* opaque) OVERRIDE { |
| + virtual void PaintContents( |
| + SkCanvas* canvas, |
| + const gfx::Rect& clip, |
| + gfx::RectF* opaque, |
| + ContentLayerClient::GraphicsContextStatus) OVERRIDE { |
|
danakj
2014/05/01 17:07:11
and here, etc.
Stephen Chennney
2014/05/01 19:12:26
Done.
|
| layer_->SetBounds(gfx::Size(2, 2)); |
| } |