Index: ui/compositor/layer_unittest.cc |
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc |
index ac534f811ee3ed905ab073ce6ae5262cd81a16fb..f6b0eacda836c54027b06f2e652ecb1e55077c12 100644 |
--- a/ui/compositor/layer_unittest.cc |
+++ b/ui/compositor/layer_unittest.cc |
@@ -62,17 +62,17 @@ class ColoredLayer : public Layer, public LayerDelegate { |
virtual ~ColoredLayer() { } |
// Overridden from LayerDelegate: |
- virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE { |
+ virtual void OnPaintLayer(gfx::Canvas* canvas) override { |
canvas->DrawColor(color_); |
} |
virtual void OnDelegatedFrameDamage( |
- const gfx::Rect& damage_rect_in_dip) OVERRIDE {} |
+ const gfx::Rect& damage_rect_in_dip) override {} |
- virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE { |
+ virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override { |
} |
- virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE { |
+ virtual base::Closure PrepareForLayerBoundsChange() override { |
return base::Closure(); |
} |
@@ -92,7 +92,7 @@ class LayerWithRealCompositorTest : public testing::Test { |
virtual ~LayerWithRealCompositorTest() {} |
// Overridden from testing::Test: |
- virtual void SetUp() OVERRIDE { |
+ virtual void SetUp() override { |
bool enable_pixel_output = true; |
ui::ContextFactory* context_factory = |
InitializeContextFactoryForTests(enable_pixel_output); |
@@ -103,7 +103,7 @@ class LayerWithRealCompositorTest : public testing::Test { |
compositor_host_->Show(); |
} |
- virtual void TearDown() OVERRIDE { |
+ virtual void TearDown() override { |
compositor_host_.reset(); |
TerminateContextFactoryForTests(); |
} |
@@ -234,7 +234,7 @@ class TestLayerDelegate : public LayerDelegate { |
} |
// Overridden from LayerDelegate: |
- virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE { |
+ virtual void OnPaintLayer(gfx::Canvas* canvas) override { |
SkISize size = canvas->sk_canvas()->getBaseLayerSize(); |
paint_size_ = gfx::Size(size.width(), size.height()); |
canvas->DrawColor(colors_[color_index_]); |
@@ -245,13 +245,13 @@ class TestLayerDelegate : public LayerDelegate { |
} |
virtual void OnDelegatedFrameDamage( |
- const gfx::Rect& damage_rect_in_dip) OVERRIDE {} |
+ const gfx::Rect& damage_rect_in_dip) override {} |
- virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE { |
+ virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override { |
device_scale_factor_ = device_scale_factor; |
} |
- virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE { |
+ virtual base::Closure PrepareForLayerBoundsChange() override { |
return base::Closure(); |
} |
@@ -287,15 +287,15 @@ class DrawTreeLayerDelegate : public LayerDelegate { |
private: |
// Overridden from LayerDelegate: |
- virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE { |
+ virtual void OnPaintLayer(gfx::Canvas* canvas) override { |
painted_ = true; |
canvas->DrawColor(SK_ColorTRANSPARENT); |
} |
virtual void OnDelegatedFrameDamage( |
- const gfx::Rect& damage_rect_in_dip) OVERRIDE {} |
- virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE { |
+ const gfx::Rect& damage_rect_in_dip) override {} |
+ virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override { |
} |
- virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE { |
+ virtual base::Closure PrepareForLayerBoundsChange() override { |
return base::Closure(); |
} |
@@ -312,11 +312,11 @@ class NullLayerDelegate : public LayerDelegate { |
private: |
// Overridden from LayerDelegate: |
- virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE {} |
+ virtual void OnPaintLayer(gfx::Canvas* canvas) override {} |
virtual void OnDelegatedFrameDamage( |
- const gfx::Rect& damage_rect_in_dip) OVERRIDE {} |
- virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {} |
- virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE { |
+ const gfx::Rect& damage_rect_in_dip) override {} |
+ virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override {} |
+ virtual base::Closure PrepareForLayerBoundsChange() override { |
return base::Closure(); |
} |
@@ -341,24 +341,24 @@ class TestCompositorObserver : public CompositorObserver { |
} |
private: |
- virtual void OnCompositingDidCommit(Compositor* compositor) OVERRIDE { |
+ virtual void OnCompositingDidCommit(Compositor* compositor) override { |
committed_ = true; |
} |
virtual void OnCompositingStarted(Compositor* compositor, |
- base::TimeTicks start_time) OVERRIDE { |
+ base::TimeTicks start_time) override { |
started_ = true; |
} |
- virtual void OnCompositingEnded(Compositor* compositor) OVERRIDE { |
+ virtual void OnCompositingEnded(Compositor* compositor) override { |
ended_ = true; |
} |
- virtual void OnCompositingAborted(Compositor* compositor) OVERRIDE { |
+ virtual void OnCompositingAborted(Compositor* compositor) override { |
aborted_ = true; |
} |
- virtual void OnCompositingLockStateChanged(Compositor* compositor) OVERRIDE { |
+ virtual void OnCompositingLockStateChanged(Compositor* compositor) override { |
} |
bool committed_; |
@@ -406,7 +406,7 @@ class LayerWithDelegateTest : public testing::Test { |
virtual ~LayerWithDelegateTest() {} |
// Overridden from testing::Test: |
- virtual void SetUp() OVERRIDE { |
+ virtual void SetUp() override { |
bool enable_pixel_output = false; |
ui::ContextFactory* context_factory = |
InitializeContextFactoryForTests(enable_pixel_output); |
@@ -417,7 +417,7 @@ class LayerWithDelegateTest : public testing::Test { |
compositor_host_->Show(); |
} |
- virtual void TearDown() OVERRIDE { |
+ virtual void TearDown() override { |
compositor_host_.reset(); |
TerminateContextFactoryForTests(); |
} |
@@ -616,12 +616,12 @@ class LayerWithNullDelegateTest : public LayerWithDelegateTest { |
LayerWithNullDelegateTest() {} |
virtual ~LayerWithNullDelegateTest() {} |
- virtual void SetUp() OVERRIDE { |
+ virtual void SetUp() override { |
LayerWithDelegateTest::SetUp(); |
default_layer_delegate_.reset(new NullLayerDelegate()); |
} |
- virtual Layer* CreateLayer(LayerType type) OVERRIDE { |
+ virtual Layer* CreateLayer(LayerType type) override { |
Layer* layer = new Layer(type); |
layer->set_delegate(default_layer_delegate_.get()); |
return layer; |
@@ -639,7 +639,7 @@ class LayerWithNullDelegateTest : public LayerWithDelegateTest { |
return layer; |
} |
- virtual Layer* CreateNoTextureLayer(const gfx::Rect& bounds) OVERRIDE { |
+ virtual Layer* CreateNoTextureLayer(const gfx::Rect& bounds) override { |
Layer* layer = CreateLayer(LAYER_NOT_DRAWN); |
layer->SetBounds(bounds); |
return layer; |
@@ -1205,7 +1205,7 @@ class SchedulePaintLayerDelegate : public LayerDelegate { |
private: |
// Overridden from LayerDelegate: |
- virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE { |
+ virtual void OnPaintLayer(gfx::Canvas* canvas) override { |
paint_count_++; |
if (!schedule_paint_rect_.IsEmpty()) { |
layer_->SchedulePaint(schedule_paint_rect_); |
@@ -1217,12 +1217,12 @@ class SchedulePaintLayerDelegate : public LayerDelegate { |
} |
virtual void OnDelegatedFrameDamage( |
- const gfx::Rect& damage_rect_in_dip) OVERRIDE {} |
+ const gfx::Rect& damage_rect_in_dip) override {} |
- virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE { |
+ virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override { |
} |
- virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE { |
+ virtual base::Closure PrepareForLayerBoundsChange() override { |
return base::Closure(); |
} |
@@ -1721,7 +1721,7 @@ class FrameDamageCheckingDelegate : public TestLayerDelegate { |
FrameDamageCheckingDelegate() : delegated_frame_damage_called_(false) {} |
virtual void OnDelegatedFrameDamage( |
- const gfx::Rect& damage_rect_in_dip) OVERRIDE { |
+ const gfx::Rect& damage_rect_in_dip) override { |
delegated_frame_damage_called_ = true; |
delegated_frame_damage_rect_ = damage_rect_in_dip; |
} |