| Index: cc/trees/layer_tree_host_unittest_context.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
|
| index 07e12a227575d0f663532918b007d8a09562f57a..0f6bcaffb403d27625f3e12f5e20816078fbe96f 100644
|
| --- a/cc/trees/layer_tree_host_unittest_context.cc
|
| +++ b/cc/trees/layer_tree_host_unittest_context.cc
|
| @@ -82,7 +82,7 @@ class LayerTreeHostContextTest : public LayerTreeTest {
|
| }
|
|
|
| virtual scoped_ptr<FakeOutputSurface> CreateFakeOutputSurface(bool fallback)
|
| - OVERRIDE {
|
| + override {
|
| if (times_to_fail_create_) {
|
| --times_to_fail_create_;
|
| ExpectCreateToFail();
|
| @@ -106,7 +106,7 @@ class LayerTreeHostContextTest : public LayerTreeTest {
|
| virtual DrawResult PrepareToDrawOnThread(
|
| LayerTreeHostImpl* host_impl,
|
| LayerTreeHostImpl::FrameData* frame,
|
| - DrawResult draw_result) OVERRIDE {
|
| + DrawResult draw_result) override {
|
| EXPECT_EQ(DRAW_SUCCESS, draw_result);
|
| if (!times_to_lose_during_draw_)
|
| return draw_result;
|
| @@ -120,7 +120,7 @@ class LayerTreeHostContextTest : public LayerTreeTest {
|
| return draw_result;
|
| }
|
|
|
| - virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
|
| + virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
|
| committed_at_least_once_ = true;
|
|
|
| if (!times_to_lose_during_commit_)
|
| @@ -132,11 +132,11 @@ class LayerTreeHostContextTest : public LayerTreeTest {
|
| times_to_fail_recreate_ = 0;
|
| }
|
|
|
| - virtual void DidFailToInitializeOutputSurface() OVERRIDE {
|
| + virtual void DidFailToInitializeOutputSurface() override {
|
| ++times_create_failed_;
|
| }
|
|
|
| - virtual void TearDown() OVERRIDE {
|
| + virtual void TearDown() override {
|
| LayerTreeTest::TearDown();
|
| EXPECT_EQ(times_to_expect_create_failed_, times_create_failed_);
|
| }
|
| @@ -168,9 +168,9 @@ class LayerTreeHostContextTestLostContextSucceeds
|
| recovered_context_(true),
|
| first_initialized_(false) {}
|
|
|
| - virtual void BeginTest() OVERRIDE { PostSetNeedsCommitToMainThread(); }
|
| + virtual void BeginTest() override { PostSetNeedsCommitToMainThread(); }
|
|
|
| - virtual void RequestNewOutputSurface(bool fallback) OVERRIDE {
|
| + virtual void RequestNewOutputSurface(bool fallback) override {
|
| if (async_output_surface_creation_) {
|
| MainThreadTaskRunner()->PostTask(
|
| FROM_HERE,
|
| @@ -188,7 +188,7 @@ class LayerTreeHostContextTestLostContextSucceeds
|
| LayerTreeHostContextTest::CreateOutputSurface(fallback));
|
| }
|
|
|
| - virtual void DidInitializeOutputSurface() OVERRIDE {
|
| + virtual void DidInitializeOutputSurface() override {
|
| if (first_initialized_)
|
| ++num_losses_;
|
| else
|
| @@ -197,9 +197,9 @@ class LayerTreeHostContextTestLostContextSucceeds
|
| recovered_context_ = true;
|
| }
|
|
|
| - virtual void AfterTest() OVERRIDE { EXPECT_EQ(11u, test_case_); }
|
| + virtual void AfterTest() override { EXPECT_EQ(11u, test_case_); }
|
|
|
| - virtual void DidCommitAndDrawFrame() OVERRIDE {
|
| + virtual void DidCommitAndDrawFrame() override {
|
| // If the last frame had a context loss, then we'll commit again to
|
| // recover.
|
| if (!recovered_context_)
|
| @@ -351,24 +351,24 @@ class LayerTreeHostClientNotReadyDoesNotCreateOutputSurface
|
| LayerTreeHostClientNotReadyDoesNotCreateOutputSurface()
|
| : LayerTreeHostContextTest() {}
|
|
|
| - virtual void WillBeginTest() OVERRIDE {
|
| + virtual void WillBeginTest() override {
|
| // Override and do not signal SetLayerTreeHostClientReady.
|
| }
|
|
|
| - virtual void BeginTest() OVERRIDE {
|
| + virtual void BeginTest() override {
|
| PostSetNeedsCommitToMainThread();
|
| EndTest();
|
| }
|
|
|
| virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback)
|
| - OVERRIDE {
|
| + override {
|
| EXPECT_TRUE(false);
|
| return nullptr;
|
| }
|
|
|
| - virtual void DidInitializeOutputSurface() OVERRIDE { EXPECT_TRUE(false); }
|
| + virtual void DidInitializeOutputSurface() override { EXPECT_TRUE(false); }
|
|
|
| - virtual void AfterTest() OVERRIDE {
|
| + virtual void AfterTest() override {
|
| }
|
| };
|
|
|
| @@ -378,7 +378,7 @@ SINGLE_AND_MULTI_THREAD_TEST_F(
|
| class LayerTreeHostContextTestLostContextSucceedsWithContent
|
| : public LayerTreeHostContextTestLostContextSucceeds {
|
| public:
|
| - virtual void SetupTree() OVERRIDE {
|
| + virtual void SetupTree() override {
|
| root_ = Layer::Create();
|
| root_->SetBounds(gfx::Size(10, 10));
|
| root_->SetIsDrawable(true);
|
| @@ -401,7 +401,7 @@ class LayerTreeHostContextTestLostContextSucceedsWithContent
|
| LayerTreeHostContextTest::SetupTree();
|
| }
|
|
|
| - virtual void InvalidateAndSetNeedsCommit() OVERRIDE {
|
| + virtual void InvalidateAndSetNeedsCommit() override {
|
| // Invalidate the render surface so we don't try to use a cached copy of the
|
| // surface. We want to make sure to test the drawing paths for drawing to
|
| // a child surface.
|
| @@ -409,7 +409,7 @@ class LayerTreeHostContextTestLostContextSucceedsWithContent
|
| LayerTreeHostContextTestLostContextSucceeds::InvalidateAndSetNeedsCommit();
|
| }
|
|
|
| - virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
|
| + virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
|
| if (!host_impl->settings().impl_side_painting) {
|
| FakeContentLayerImpl* content_impl = static_cast<FakeContentLayerImpl*>(
|
| host_impl->active_tree()->root_layer()->children()[0]);
|
| @@ -449,12 +449,12 @@ class LayerTreeHostContextTestCreateOutputSurfaceFails
|
| times_to_fail_create_ = times_to_fail_;
|
| }
|
|
|
| - virtual void BeginTest() OVERRIDE {
|
| + virtual void BeginTest() override {
|
| PostSetNeedsCommitToMainThread();
|
| }
|
|
|
| virtual scoped_ptr<FakeOutputSurface> CreateFakeOutputSurface(bool fallback)
|
| - OVERRIDE {
|
| + override {
|
| scoped_ptr<FakeOutputSurface> surface =
|
| LayerTreeHostContextTest::CreateFakeOutputSurface(fallback);
|
|
|
| @@ -465,13 +465,13 @@ class LayerTreeHostContextTestCreateOutputSurfaceFails
|
| return surface.Pass();
|
| }
|
|
|
| - virtual void DidInitializeOutputSurface() OVERRIDE { times_initialized_++; }
|
| + virtual void DidInitializeOutputSurface() override { times_initialized_++; }
|
|
|
| - virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
|
| + virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
|
| EndTest();
|
| }
|
|
|
| - virtual void AfterTest() OVERRIDE {
|
| + virtual void AfterTest() override {
|
| EXPECT_EQ(times_to_fail_, times_create_failed_);
|
| EXPECT_NE(0, times_initialized_);
|
| EXPECT_EQ(expect_fallback_attempt_, did_attempt_fallback_);
|
| @@ -515,7 +515,7 @@ class LayerTreeHostContextTestLostContextAndEvictTextures
|
| num_commits_(0),
|
| lost_context_(false) {}
|
|
|
| - virtual void SetupTree() OVERRIDE {
|
| + virtual void SetupTree() override {
|
| // Paint non-solid color.
|
| SkPaint paint;
|
| paint.setColor(SkColorSetARGB(100, 80, 200, 200));
|
| @@ -534,7 +534,7 @@ class LayerTreeHostContextTestLostContextAndEvictTextures
|
| LayerTreeHostContextTest::SetupTree();
|
| }
|
|
|
| - virtual void BeginTest() OVERRIDE { PostSetNeedsCommitToMainThread(); }
|
| + virtual void BeginTest() override { PostSetNeedsCommitToMainThread(); }
|
|
|
| void PostEvictTextures() {
|
| if (HasImplThread()) {
|
| @@ -558,7 +558,7 @@ class LayerTreeHostContextTestLostContextAndEvictTextures
|
| }
|
| }
|
|
|
| - virtual void DidCommitAndDrawFrame() OVERRIDE {
|
| + virtual void DidCommitAndDrawFrame() override {
|
| if (num_commits_ > 1)
|
| return;
|
| if (!layer_tree_host()->settings().impl_side_painting) {
|
| @@ -567,7 +567,7 @@ class LayerTreeHostContextTestLostContextAndEvictTextures
|
| PostEvictTextures();
|
| }
|
|
|
| - virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) override {
|
| LayerTreeHostContextTest::CommitCompleteOnThread(impl);
|
| if (num_commits_ > 1)
|
| return;
|
| @@ -578,7 +578,7 @@ class LayerTreeHostContextTestLostContextAndEvictTextures
|
| }
|
| }
|
|
|
| - virtual void DrawLayersOnThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void DrawLayersOnThread(LayerTreeHostImpl* impl) override {
|
| if (impl->settings().impl_side_painting) {
|
| FakePictureLayerImpl* picture_impl =
|
| static_cast<FakePictureLayerImpl*>(impl->active_tree()->root_layer());
|
| @@ -594,9 +594,9 @@ class LayerTreeHostContextTestLostContextAndEvictTextures
|
| EndTest();
|
| }
|
|
|
| - virtual void DidInitializeOutputSurface() OVERRIDE {}
|
| + virtual void DidInitializeOutputSurface() override {}
|
|
|
| - virtual void AfterTest() OVERRIDE {}
|
| + virtual void AfterTest() override {}
|
|
|
| protected:
|
| bool lose_after_evict_;
|
| @@ -681,7 +681,7 @@ class LayerTreeHostContextTestLostContextWhileUpdatingResources
|
| LayerTreeHostContextTestLostContextWhileUpdatingResources()
|
| : num_children_(50), times_to_lose_on_end_query_(3) {}
|
|
|
| - virtual scoped_ptr<TestWebGraphicsContext3D> CreateContext3d() OVERRIDE {
|
| + virtual scoped_ptr<TestWebGraphicsContext3D> CreateContext3d() override {
|
| scoped_ptr<TestWebGraphicsContext3D> context =
|
| LayerTreeHostContextTest::CreateContext3d();
|
| if (times_to_lose_on_end_query_) {
|
| @@ -691,7 +691,7 @@ class LayerTreeHostContextTestLostContextWhileUpdatingResources
|
| return context.Pass();
|
| }
|
|
|
| - virtual void SetupTree() OVERRIDE {
|
| + virtual void SetupTree() override {
|
| if (layer_tree_host()->settings().impl_side_painting)
|
| parent_ = FakePictureLayer::Create(&client_);
|
| else
|
| @@ -714,14 +714,14 @@ class LayerTreeHostContextTestLostContextWhileUpdatingResources
|
| LayerTreeHostContextTest::SetupTree();
|
| }
|
|
|
| - virtual void BeginTest() OVERRIDE { PostSetNeedsCommitToMainThread(); }
|
| + virtual void BeginTest() override { PostSetNeedsCommitToMainThread(); }
|
|
|
| - virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
|
| + virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
|
| EXPECT_EQ(0, times_to_lose_on_end_query_);
|
| EndTest();
|
| }
|
|
|
| - virtual void AfterTest() OVERRIDE {
|
| + virtual void AfterTest() override {
|
| EXPECT_EQ(0, times_to_lose_on_end_query_);
|
| }
|
|
|
| @@ -740,7 +740,7 @@ class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest {
|
| LayerTreeHostContextTestLayersNotified()
|
| : LayerTreeHostContextTest(), num_commits_(0) {}
|
|
|
| - virtual void SetupTree() OVERRIDE {
|
| + virtual void SetupTree() override {
|
| if (layer_tree_host()->settings().impl_side_painting) {
|
| root_ = FakePictureLayer::Create(&client_);
|
| child_ = FakePictureLayer::Create(&client_);
|
| @@ -758,9 +758,9 @@ class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest {
|
| LayerTreeHostContextTest::SetupTree();
|
| }
|
|
|
| - virtual void BeginTest() OVERRIDE { PostSetNeedsCommitToMainThread(); }
|
| + virtual void BeginTest() override { PostSetNeedsCommitToMainThread(); }
|
|
|
| - virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
|
| + virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) override {
|
| LayerTreeHostContextTest::DidActivateTreeOnThread(host_impl);
|
|
|
| FakePictureLayerImpl* root_picture = NULL;
|
| @@ -822,7 +822,7 @@ class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest {
|
| }
|
| }
|
|
|
| - virtual void AfterTest() OVERRIDE {}
|
| + virtual void AfterTest() override {}
|
|
|
| private:
|
| int num_commits_;
|
| @@ -856,7 +856,7 @@ class LayerTreeHostContextTestDontUseLostResources
|
|
|
| static void EmptyReleaseCallback(unsigned sync_point, bool lost) {}
|
|
|
| - virtual void SetupTree() OVERRIDE {
|
| + virtual void SetupTree() override {
|
| gpu::gles2::GLES2Interface* gl =
|
| child_output_surface_->context_provider()->ContextGL();
|
|
|
| @@ -1012,9 +1012,9 @@ class LayerTreeHostContextTestDontUseLostResources
|
| LayerTreeHostContextTest::SetupTree();
|
| }
|
|
|
| - virtual void BeginTest() OVERRIDE { PostSetNeedsCommitToMainThread(); }
|
| + virtual void BeginTest() override { PostSetNeedsCommitToMainThread(); }
|
|
|
| - virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
|
| + virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
|
| LayerTreeHostContextTest::CommitCompleteOnThread(host_impl);
|
|
|
| if (host_impl->active_tree()->source_frame_number() == 3) {
|
| @@ -1029,7 +1029,7 @@ class LayerTreeHostContextTestDontUseLostResources
|
| virtual DrawResult PrepareToDrawOnThread(
|
| LayerTreeHostImpl* host_impl,
|
| LayerTreeHostImpl::FrameData* frame,
|
| - DrawResult draw_result) OVERRIDE {
|
| + DrawResult draw_result) override {
|
| if (host_impl->active_tree()->source_frame_number() == 2) {
|
| // Lose the context during draw on the second commit. This will cause
|
| // a third commit to recover.
|
| @@ -1039,7 +1039,7 @@ class LayerTreeHostContextTestDontUseLostResources
|
| }
|
|
|
| virtual scoped_ptr<FakeOutputSurface> CreateFakeOutputSurface(bool fallback)
|
| - OVERRIDE {
|
| + override {
|
| // This will get called twice:
|
| // First when we create the initial output surface...
|
| if (layer_tree_host()->source_frame_number() > 0) {
|
| @@ -1049,7 +1049,7 @@ class LayerTreeHostContextTestDontUseLostResources
|
| return LayerTreeHostContextTest::CreateFakeOutputSurface(fallback);
|
| }
|
|
|
| - virtual void DidCommitAndDrawFrame() OVERRIDE {
|
| + virtual void DidCommitAndDrawFrame() override {
|
| ASSERT_TRUE(layer_tree_host()->hud_layer());
|
| // End the test once we know the 3nd frame drew.
|
| if (layer_tree_host()->source_frame_number() < 5) {
|
| @@ -1060,7 +1060,7 @@ class LayerTreeHostContextTestDontUseLostResources
|
| }
|
| }
|
|
|
| - virtual void AfterTest() OVERRIDE { EXPECT_TRUE(lost_context_); }
|
| + virtual void AfterTest() override { EXPECT_TRUE(lost_context_); }
|
|
|
| private:
|
| FakeContentLayerClient client_;
|
| @@ -1089,7 +1089,7 @@ SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostContextTestDontUseLostResources);
|
| class ImplSidePaintingLayerTreeHostContextTest
|
| : public LayerTreeHostContextTest {
|
| public:
|
| - virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
|
| + virtual void InitializeSettings(LayerTreeSettings* settings) override {
|
| settings->impl_side_painting = true;
|
| }
|
| };
|
| @@ -1097,7 +1097,7 @@ class ImplSidePaintingLayerTreeHostContextTest
|
| class LayerTreeHostContextTestImplSidePainting
|
| : public ImplSidePaintingLayerTreeHostContextTest {
|
| public:
|
| - virtual void SetupTree() OVERRIDE {
|
| + virtual void SetupTree() override {
|
| scoped_refptr<Layer> root = Layer::Create();
|
| root->SetBounds(gfx::Size(10, 10));
|
| root->SetIsDrawable(true);
|
| @@ -1111,14 +1111,14 @@ class LayerTreeHostContextTestImplSidePainting
|
| LayerTreeHostContextTest::SetupTree();
|
| }
|
|
|
| - virtual void BeginTest() OVERRIDE {
|
| + virtual void BeginTest() override {
|
| times_to_lose_during_commit_ = 1;
|
| PostSetNeedsCommitToMainThread();
|
| }
|
|
|
| - virtual void AfterTest() OVERRIDE {}
|
| + virtual void AfterTest() override {}
|
|
|
| - virtual void DidInitializeOutputSurface() OVERRIDE { EndTest(); }
|
| + virtual void DidInitializeOutputSurface() override { EndTest(); }
|
|
|
| private:
|
| FakeContentLayerClient client_;
|
| @@ -1130,7 +1130,7 @@ class ScrollbarLayerLostContext : public LayerTreeHostContextTest {
|
| public:
|
| ScrollbarLayerLostContext() : commits_(0) {}
|
|
|
| - virtual void BeginTest() OVERRIDE {
|
| + virtual void BeginTest() override {
|
| scoped_refptr<Layer> scroll_layer = Layer::Create();
|
| scrollbar_layer_ =
|
| FakePaintedScrollbarLayer::Create(false, true, scroll_layer->id());
|
| @@ -1140,9 +1140,9 @@ class ScrollbarLayerLostContext : public LayerTreeHostContextTest {
|
| PostSetNeedsCommitToMainThread();
|
| }
|
|
|
| - virtual void AfterTest() OVERRIDE {}
|
| + virtual void AfterTest() override {}
|
|
|
| - virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) override {
|
| LayerTreeHostContextTest::CommitCompleteOnThread(impl);
|
|
|
| ++commits_;
|
| @@ -1174,11 +1174,11 @@ SINGLE_AND_MULTI_THREAD_TEST_F(ScrollbarLayerLostContext);
|
| class UIResourceLostTest : public LayerTreeHostContextTest {
|
| public:
|
| UIResourceLostTest() : time_step_(0) {}
|
| - virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
|
| + virtual void InitializeSettings(LayerTreeSettings* settings) override {
|
| settings->texture_id_allocation_chunk_size = 1;
|
| }
|
| - virtual void BeginTest() OVERRIDE { PostSetNeedsCommitToMainThread(); }
|
| - virtual void AfterTest() OVERRIDE {}
|
| + virtual void BeginTest() override { PostSetNeedsCommitToMainThread(); }
|
| + virtual void AfterTest() override {}
|
|
|
| // This is called on the main thread after each commit and
|
| // DidActivateTreeOnThread, with the value of time_step_ at the time
|
| @@ -1225,7 +1225,7 @@ class UIResourceLostTestSimple : public UIResourceLostTest {
|
| // activated.
|
| virtual void StepCompleteOnImplThread(LayerTreeHostImpl* impl) = 0;
|
|
|
| - virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) override {
|
| if (!layer_tree_host()->settings().impl_side_painting) {
|
| StepCompleteOnImplThread(impl);
|
| PostStepCompleteToMainThread();
|
| @@ -1233,7 +1233,7 @@ class UIResourceLostTestSimple : public UIResourceLostTest {
|
| }
|
| }
|
|
|
| - virtual void DidActivateTreeOnThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void DidActivateTreeOnThread(LayerTreeHostImpl* impl) override {
|
| if (layer_tree_host()->settings().impl_side_painting) {
|
| StepCompleteOnImplThread(impl);
|
| PostStepCompleteToMainThread();
|
| @@ -1245,7 +1245,7 @@ class UIResourceLostTestSimple : public UIResourceLostTest {
|
| // Losing context after an UI resource has been created.
|
| class UIResourceLostAfterCommit : public UIResourceLostTestSimple {
|
| public:
|
| - virtual void StepCompleteOnMainThread(int step) OVERRIDE {
|
| + virtual void StepCompleteOnMainThread(int step) override {
|
| EXPECT_TRUE(layer_tree_host()->proxy()->IsMainThread());
|
| switch (step) {
|
| case 0:
|
| @@ -1265,7 +1265,7 @@ class UIResourceLostAfterCommit : public UIResourceLostTestSimple {
|
| }
|
| }
|
|
|
| - virtual void StepCompleteOnImplThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void StepCompleteOnImplThread(LayerTreeHostImpl* impl) override {
|
| LayerTreeHostContextTest::CommitCompleteOnThread(impl);
|
| switch (time_step_) {
|
| case 1:
|
| @@ -1304,7 +1304,7 @@ class UIResourceLostBeforeCommit : public UIResourceLostTestSimple {
|
| public:
|
| UIResourceLostBeforeCommit() : test_id0_(0), test_id1_(0) {}
|
|
|
| - virtual void StepCompleteOnMainThread(int step) OVERRIDE {
|
| + virtual void StepCompleteOnMainThread(int step) override {
|
| switch (step) {
|
| case 0:
|
| ui_resource_ = FakeScopedUIResource::Create(layer_tree_host());
|
| @@ -1354,7 +1354,7 @@ class UIResourceLostBeforeCommit : public UIResourceLostTestSimple {
|
| }
|
| }
|
|
|
| - virtual void StepCompleteOnImplThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void StepCompleteOnImplThread(LayerTreeHostImpl* impl) override {
|
| LayerTreeHostContextTest::CommitCompleteOnThread(impl);
|
| switch (time_step_) {
|
| case 1:
|
| @@ -1400,7 +1400,7 @@ SINGLE_AND_MULTI_THREAD_TEST_F(UIResourceLostBeforeCommit);
|
| // Losing UI resource before the pending trees is activated but after the
|
| // commit. Impl-side-painting only.
|
| class UIResourceLostBeforeActivateTree : public UIResourceLostTest {
|
| - virtual void StepCompleteOnMainThread(int step) OVERRIDE {
|
| + virtual void StepCompleteOnMainThread(int step) override {
|
| EXPECT_TRUE(layer_tree_host()->proxy()->IsMainThread());
|
| switch (step) {
|
| case 0:
|
| @@ -1423,7 +1423,7 @@ class UIResourceLostBeforeActivateTree : public UIResourceLostTest {
|
| }
|
| }
|
|
|
| - virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) override {
|
| LayerTreeHostContextTest::CommitCompleteOnThread(impl);
|
| switch (time_step_) {
|
| case 2:
|
| @@ -1435,7 +1435,7 @@ class UIResourceLostBeforeActivateTree : public UIResourceLostTest {
|
| }
|
| }
|
|
|
| - virtual void WillActivateTreeOnThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void WillActivateTreeOnThread(LayerTreeHostImpl* impl) override {
|
| switch (time_step_) {
|
| case 1:
|
| // The resource creation callback has been called.
|
| @@ -1452,7 +1452,7 @@ class UIResourceLostBeforeActivateTree : public UIResourceLostTest {
|
| }
|
| }
|
|
|
| - virtual void DidActivateTreeOnThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void DidActivateTreeOnThread(LayerTreeHostImpl* impl) override {
|
| LayerTreeHostContextTest::DidActivateTreeOnThread(impl);
|
| switch (time_step_) {
|
| case 1:
|
| @@ -1491,7 +1491,7 @@ TEST_F(UIResourceLostBeforeActivateTree,
|
| // Resources evicted explicitly and by visibility changes.
|
| class UIResourceLostEviction : public UIResourceLostTestSimple {
|
| public:
|
| - virtual void StepCompleteOnMainThread(int step) OVERRIDE {
|
| + virtual void StepCompleteOnMainThread(int step) override {
|
| EXPECT_TRUE(layer_tree_host()->proxy()->IsMainThread());
|
| switch (step) {
|
| case 0:
|
| @@ -1514,7 +1514,7 @@ class UIResourceLostEviction : public UIResourceLostTestSimple {
|
| }
|
|
|
| virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* impl,
|
| - bool visible) OVERRIDE {
|
| + bool visible) override {
|
| TestWebGraphicsContext3D* context = TestContext();
|
| if (!visible) {
|
| // All resources should have been evicted.
|
| @@ -1530,7 +1530,7 @@ class UIResourceLostEviction : public UIResourceLostTestSimple {
|
| }
|
| }
|
|
|
| - virtual void StepCompleteOnImplThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void StepCompleteOnImplThread(LayerTreeHostImpl* impl) override {
|
| TestWebGraphicsContext3D* context = TestContext();
|
| LayerTreeHostContextTest::CommitCompleteOnThread(impl);
|
| switch (time_step_) {
|
| @@ -1578,7 +1578,7 @@ class LayerTreeHostContextTestSurfaceCreateCallback
|
| LayerTreeHostContextTestSurfaceCreateCallback()
|
| : LayerTreeHostContextTest() {}
|
|
|
| - virtual void SetupTree() OVERRIDE {
|
| + virtual void SetupTree() override {
|
| if (layer_tree_host()->settings().impl_side_painting) {
|
| picture_layer_ = FakePictureLayer::Create(&client_);
|
| picture_layer_->SetBounds(gfx::Size(10, 20));
|
| @@ -1592,9 +1592,9 @@ class LayerTreeHostContextTestSurfaceCreateCallback
|
| LayerTreeHostContextTest::SetupTree();
|
| }
|
|
|
| - virtual void BeginTest() OVERRIDE { PostSetNeedsCommitToMainThread(); }
|
| + virtual void BeginTest() override { PostSetNeedsCommitToMainThread(); }
|
|
|
| - virtual void DidCommit() OVERRIDE {
|
| + virtual void DidCommit() override {
|
| switch (layer_tree_host()->source_frame_number()) {
|
| case 1:
|
| if (layer_tree_host()->settings().impl_side_painting)
|
| @@ -1626,7 +1626,7 @@ class LayerTreeHostContextTestSurfaceCreateCallback
|
| }
|
| }
|
|
|
| - virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) OVERRIDE {
|
| + virtual void CommitCompleteOnThread(LayerTreeHostImpl* impl) override {
|
| LayerTreeHostContextTest::CommitCompleteOnThread(impl);
|
| switch (LastCommittedSourceFrameNumber(impl)) {
|
| case 0:
|
| @@ -1642,7 +1642,7 @@ class LayerTreeHostContextTestSurfaceCreateCallback
|
| }
|
| }
|
|
|
| - virtual void AfterTest() OVERRIDE {}
|
| + virtual void AfterTest() override {}
|
|
|
| protected:
|
| FakeContentLayerClient client_;
|
| @@ -1655,12 +1655,12 @@ SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostContextTestSurfaceCreateCallback);
|
| class LayerTreeHostContextTestLoseAfterSendingBeginMainFrame
|
| : public LayerTreeHostContextTest {
|
| protected:
|
| - virtual void BeginTest() OVERRIDE {
|
| + virtual void BeginTest() override {
|
| deferred_ = false;
|
| PostSetNeedsCommitToMainThread();
|
| }
|
|
|
| - virtual void ScheduledActionWillSendBeginMainFrame() OVERRIDE {
|
| + virtual void ScheduledActionWillSendBeginMainFrame() override {
|
| if (deferred_)
|
| return;
|
| deferred_ = true;
|
| @@ -1696,14 +1696,14 @@ class LayerTreeHostContextTestLoseAfterSendingBeginMainFrame
|
| layer_tree_host()->SetDeferCommits(defer_commits);
|
| }
|
|
|
| - virtual void WillBeginMainFrame() OVERRIDE {
|
| + virtual void WillBeginMainFrame() override {
|
| // Don't begin a frame with a lost surface.
|
| EXPECT_FALSE(layer_tree_host()->output_surface_lost());
|
| }
|
|
|
| - virtual void DidCommitAndDrawFrame() OVERRIDE { EndTest(); }
|
| + virtual void DidCommitAndDrawFrame() override { EndTest(); }
|
|
|
| - virtual void AfterTest() OVERRIDE {}
|
| + virtual void AfterTest() override {}
|
|
|
| bool deferred_;
|
| };
|
|
|