Index: cc/trees/layer_tree_host_impl_unittest.cc |
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc |
index cb52be725b97496e8d883193e5700cdd3be047f6..81a7e60d3d6881bb4dc9a63b05c43966baa7ef5f 100644 |
--- a/cc/trees/layer_tree_host_impl_unittest.cc |
+++ b/cc/trees/layer_tree_host_impl_unittest.cc |
@@ -105,64 +105,64 @@ class LayerTreeHostImplTest : public testing::Test, |
return settings; |
} |
- virtual void SetUp() OVERRIDE { |
+ virtual void SetUp() override { |
CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
} |
- virtual void TearDown() OVERRIDE {} |
+ virtual void TearDown() override {} |
- virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} |
- virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
+ virtual void UpdateRendererCapabilitiesOnImplThread() override {} |
+ virtual void DidLoseOutputSurfaceOnImplThread() override {} |
virtual void CommitVSyncParameters(base::TimeTicks timebase, |
- base::TimeDelta interval) OVERRIDE {} |
- virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} |
- virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} |
- virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
- virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} |
- virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
+ base::TimeDelta interval) override {} |
+ virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} |
+ virtual void SetMaxSwapsPendingOnImplThread(int max) override {} |
+ virtual void DidSwapBuffersOnImplThread() override {} |
+ virtual void DidSwapBuffersCompleteOnImplThread() override {} |
+ virtual void OnCanDrawStateChanged(bool can_draw) override { |
on_can_draw_state_changed_called_ = true; |
} |
- virtual void NotifyReadyToActivate() OVERRIDE { |
+ virtual void NotifyReadyToActivate() override { |
did_notify_ready_to_activate_ = true; |
host_impl_->ActivateSyncTree(); |
} |
- virtual void SetNeedsRedrawOnImplThread() OVERRIDE { |
+ virtual void SetNeedsRedrawOnImplThread() override { |
did_request_redraw_ = true; |
} |
virtual void SetNeedsRedrawRectOnImplThread( |
- const gfx::Rect& damage_rect) OVERRIDE { |
+ const gfx::Rect& damage_rect) override { |
did_request_redraw_ = true; |
} |
- virtual void SetNeedsAnimateOnImplThread() OVERRIDE { |
+ virtual void SetNeedsAnimateOnImplThread() override { |
did_request_animate_ = true; |
} |
- virtual void SetNeedsManageTilesOnImplThread() OVERRIDE { |
+ virtual void SetNeedsManageTilesOnImplThread() override { |
did_request_manage_tiles_ = true; |
} |
- virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE { |
+ virtual void DidInitializeVisibleTileOnImplThread() override { |
did_upload_visible_tile_ = true; |
} |
- virtual void SetNeedsCommitOnImplThread() OVERRIDE { |
+ virtual void SetNeedsCommitOnImplThread() override { |
did_request_commit_ = true; |
} |
virtual void PostAnimationEventsToMainThreadOnImplThread( |
- scoped_ptr<AnimationEventsVector> events) OVERRIDE {} |
+ scoped_ptr<AnimationEventsVector> events) override {} |
virtual bool ReduceContentsTextureMemoryOnImplThread( |
- size_t limit_bytes, int priority_cutoff) OVERRIDE { |
+ size_t limit_bytes, int priority_cutoff) override { |
current_limit_bytes_ = limit_bytes; |
current_priority_cutoff_value_ = priority_cutoff; |
return reduce_memory_result_; |
} |
- virtual bool IsInsideDraw() OVERRIDE { return false; } |
- virtual void RenewTreePriority() OVERRIDE {} |
+ virtual bool IsInsideDraw() override { return false; } |
+ virtual void RenewTreePriority() override {} |
virtual void PostDelayedScrollbarFadeOnImplThread( |
const base::Closure& start_fade, |
- base::TimeDelta delay) OVERRIDE { |
+ base::TimeDelta delay) override { |
scrollbar_fade_start_ = start_fade; |
requested_scrollbar_animation_delay_ = delay; |
} |
- virtual void DidActivateSyncTree() OVERRIDE {} |
- virtual void DidManageTiles() OVERRIDE {} |
+ virtual void DidActivateSyncTree() override {} |
+ virtual void DidManageTiles() override {} |
void set_reduce_memory_result(bool reduce_memory_result) { |
reduce_memory_result_ = reduce_memory_result; |
@@ -1368,7 +1368,7 @@ class LayerTreeHostImplOverridePhysicalTime : public LayerTreeHostImpl { |
manager, |
0) {} |
- virtual BeginFrameArgs CurrentBeginFrameArgs() const OVERRIDE { |
+ virtual BeginFrameArgs CurrentBeginFrameArgs() const override { |
return CreateBeginFrameArgsForTesting(fake_current_physical_time_); |
} |
@@ -1708,7 +1708,7 @@ class DidDrawCheckLayer : public LayerImpl { |
} |
virtual bool WillDraw(DrawMode draw_mode, ResourceProvider* provider) |
- OVERRIDE { |
+ override { |
will_draw_called_ = true; |
if (will_draw_returns_false_) |
return false; |
@@ -1717,12 +1717,12 @@ class DidDrawCheckLayer : public LayerImpl { |
virtual void AppendQuads(RenderPass* render_pass, |
const OcclusionTracker<LayerImpl>& occlusion_tracker, |
- AppendQuadsData* append_quads_data) OVERRIDE { |
+ AppendQuadsData* append_quads_data) override { |
append_quads_called_ = true; |
LayerImpl::AppendQuads(render_pass, occlusion_tracker, append_quads_data); |
} |
- virtual void DidDraw(ResourceProvider* provider) OVERRIDE { |
+ virtual void DidDraw(ResourceProvider* provider) override { |
did_draw_called_ = true; |
LayerImpl::DidDraw(provider); |
} |
@@ -1940,7 +1940,7 @@ class MissingTextureAnimatingLayer : public DidDrawCheckLayer { |
virtual void AppendQuads(RenderPass* render_pass, |
const OcclusionTracker<LayerImpl>& occlusion_tracker, |
- AppendQuadsData* append_quads_data) OVERRIDE { |
+ AppendQuadsData* append_quads_data) override { |
LayerImpl::AppendQuads(render_pass, occlusion_tracker, append_quads_data); |
if (had_incomplete_tile_) |
append_quads_data->num_incomplete_tiles++; |
@@ -3283,11 +3283,11 @@ class TestScrollOffsetDelegate : public LayerScrollOffsetDelegate { |
virtual ~TestScrollOffsetDelegate() {} |
- virtual gfx::ScrollOffset GetTotalScrollOffset() OVERRIDE { |
+ virtual gfx::ScrollOffset GetTotalScrollOffset() override { |
return getter_return_value_; |
} |
- virtual bool IsExternalFlingActive() const OVERRIDE { return false; } |
+ virtual bool IsExternalFlingActive() const override { return false; } |
virtual void UpdateRootLayerState( |
const gfx::ScrollOffset& total_scroll_offset, |
@@ -3295,7 +3295,7 @@ class TestScrollOffsetDelegate : public LayerScrollOffsetDelegate { |
const gfx::SizeF& scrollable_size, |
float page_scale_factor, |
float min_page_scale_factor, |
- float max_page_scale_factor) OVERRIDE { |
+ float max_page_scale_factor) override { |
DCHECK(total_scroll_offset.x() <= max_scroll_offset.x()); |
DCHECK(total_scroll_offset.y() <= max_scroll_offset.y()); |
last_set_scroll_offset_ = total_scroll_offset; |
@@ -3739,7 +3739,7 @@ class BlendStateCheckLayer : public LayerImpl { |
virtual void AppendQuads(RenderPass* render_pass, |
const OcclusionTracker<LayerImpl>& occlusion_tracker, |
- AppendQuadsData* append_quads_data) OVERRIDE { |
+ AppendQuadsData* append_quads_data) override { |
quads_appended_ = true; |
gfx::Rect opaque_rect; |
@@ -4149,7 +4149,7 @@ class LayerTreeHostImplViewportCoveredTest : public LayerTreeHostImplTest { |
host_impl_->DidDrawAllLayers(frame); |
} |
- virtual void DidActivateSyncTree() OVERRIDE { |
+ virtual void DidActivateSyncTree() override { |
did_activate_pending_tree_ = true; |
} |
@@ -4503,7 +4503,7 @@ class FakeLayerWithQuads : public LayerImpl { |
virtual void AppendQuads(RenderPass* render_pass, |
const OcclusionTracker<LayerImpl>& occlusion_tracker, |
- AppendQuadsData* append_quads_data) OVERRIDE { |
+ AppendQuadsData* append_quads_data) override { |
SharedQuadState* shared_quad_state = |
render_pass->CreateAndAppendSharedQuadState(); |
PopulateSharedQuadState(shared_quad_state); |
@@ -4951,7 +4951,7 @@ TEST_F(LayerTreeHostImplTest, ReleaseContentsTextureShouldTriggerCommit) { |
class LayerTreeHostImplTestWithDelegatingRenderer |
: public LayerTreeHostImplTest { |
protected: |
- virtual scoped_ptr<OutputSurface> CreateOutputSurface() OVERRIDE { |
+ virtual scoped_ptr<OutputSurface> CreateOutputSurface() override { |
return FakeOutputSurface::CreateDelegating3d(); |
} |
@@ -5041,7 +5041,7 @@ class FakeMaskLayerImpl : public LayerImpl { |
return make_scoped_ptr(new FakeMaskLayerImpl(tree_impl, id)); |
} |
- virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE { |
+ virtual ResourceProvider::ResourceId ContentsResourceId() const override { |
return 0; |
} |
@@ -5771,7 +5771,7 @@ class CompositorFrameMetadataTest : public LayerTreeHostImplTest { |
CompositorFrameMetadataTest() |
: swap_buffers_complete_(0) {} |
- virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE { |
+ virtual void DidSwapBuffersCompleteOnImplThread() override { |
swap_buffers_complete_++; |
} |
@@ -5796,11 +5796,11 @@ class CountingSoftwareDevice : public SoftwareOutputDevice { |
public: |
CountingSoftwareDevice() : frames_began_(0), frames_ended_(0) {} |
- virtual SkCanvas* BeginPaint(const gfx::Rect& damage_rect) OVERRIDE { |
+ virtual SkCanvas* BeginPaint(const gfx::Rect& damage_rect) override { |
++frames_began_; |
return SoftwareOutputDevice::BeginPaint(damage_rect); |
} |
- virtual void EndPaint(SoftwareFrameData* frame_data) OVERRIDE { |
+ virtual void EndPaint(SoftwareFrameData* frame_data) override { |
++frames_ended_; |
SoftwareOutputDevice::EndPaint(frame_data); |
} |
@@ -5894,7 +5894,7 @@ TEST_F(LayerTreeHostImplTest, |
class LayerTreeHostImplTestDeferredInitialize : public LayerTreeHostImplTest { |
protected: |
- virtual void SetUp() OVERRIDE { |
+ virtual void SetUp() override { |
LayerTreeHostImplTest::SetUp(); |
set_reduce_memory_result(false); |
@@ -5915,7 +5915,7 @@ class LayerTreeHostImplTestDeferredInitialize : public LayerTreeHostImplTest { |
onscreen_context_provider_ = TestContextProvider::Create(); |
} |
- virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE { |
+ virtual void UpdateRendererCapabilitiesOnImplThread() override { |
did_update_renderer_capabilities_ = true; |
} |
@@ -6082,7 +6082,7 @@ TEST_F(LayerTreeHostImplTest, RequireHighResAfterGpuRasterizationToggles) { |
class LayerTreeHostImplTestManageTiles : public LayerTreeHostImplTest { |
public: |
- virtual void SetUp() OVERRIDE { |
+ virtual void SetUp() override { |
LayerTreeSettings settings; |
settings.impl_side_painting = true; |
@@ -6634,15 +6634,15 @@ class SimpleSwapPromiseMonitor : public SwapPromiseMonitor { |
virtual ~SimpleSwapPromiseMonitor() {} |
- virtual void OnSetNeedsCommitOnMain() OVERRIDE { |
+ virtual void OnSetNeedsCommitOnMain() override { |
(*set_needs_commit_count_)++; |
} |
- virtual void OnSetNeedsRedrawOnImpl() OVERRIDE { |
+ virtual void OnSetNeedsRedrawOnImpl() override { |
(*set_needs_redraw_count_)++; |
} |
- virtual void OnForwardScrollUpdateToMainThreadOnImpl() OVERRIDE { |
+ virtual void OnForwardScrollUpdateToMainThreadOnImpl() override { |
(*forward_to_main_count_)++; |
} |
@@ -6742,7 +6742,7 @@ TEST_F(LayerTreeHostImplTest, SimpleSwapPromiseMonitor) { |
class LayerTreeHostImplWithTopControlsTest : public LayerTreeHostImplTest { |
public: |
- virtual void SetUp() OVERRIDE { |
+ virtual void SetUp() override { |
LayerTreeSettings settings = DefaultSettings(); |
settings.calculate_top_controls_position = true; |
settings.top_controls_height = top_controls_height_; |
@@ -7061,7 +7061,7 @@ TEST_F(LayerTreeHostImplVirtualViewportTest, FlingScrollBubblesToInner) { |
class LayerTreeHostImplWithImplicitLimitsTest : public LayerTreeHostImplTest { |
public: |
- virtual void SetUp() OVERRIDE { |
+ virtual void SetUp() override { |
LayerTreeSettings settings = DefaultSettings(); |
settings.max_memory_for_prepaint_percentage = 50; |
CreateHostImpl(settings, CreateOutputSurface()); |
@@ -7252,7 +7252,7 @@ TEST_F(LayerTreeHostImplTest, DidBecomeActive) { |
class LayerTreeHostImplCountingLostSurfaces : public LayerTreeHostImplTest { |
public: |
LayerTreeHostImplCountingLostSurfaces() : num_lost_surfaces_(0) {} |
- virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE { |
+ virtual void DidLoseOutputSurfaceOnImplThread() override { |
num_lost_surfaces_++; |
} |