Chromium Code Reviews| 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 0f6bcaffb403d27625f3e12f5e20816078fbe96f..a95c8c5d4b3fdffe2de41cfba8012bfd48db7418 100644 |
| --- a/cc/trees/layer_tree_host_unittest_context.cc |
| +++ b/cc/trees/layer_tree_host_unittest_context.cc |
| @@ -54,7 +54,7 @@ class LayerTreeHostContextTest : public LayerTreeTest { |
| public: |
| LayerTreeHostContextTest() |
| : LayerTreeTest(), |
| - context3d_(NULL), |
| + context3d_(nullptr), |
| times_to_fail_create_(0), |
| times_to_lose_during_commit_(0), |
| times_to_lose_during_draw_(0), |
| @@ -74,7 +74,7 @@ class LayerTreeHostContextTest : public LayerTreeTest { |
| CHECK(context3d_); |
| context3d_->loseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_ARB, |
| GL_INNOCENT_CONTEXT_RESET_ARB); |
| - context3d_ = NULL; |
| + context3d_ = nullptr; |
| } |
| virtual scoped_ptr<TestWebGraphicsContext3D> CreateContext3d() { |
| @@ -763,12 +763,12 @@ class LayerTreeHostContextTestLayersNotified : public LayerTreeHostContextTest { |
| virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) override { |
| LayerTreeHostContextTest::DidActivateTreeOnThread(host_impl); |
| - FakePictureLayerImpl* root_picture = NULL; |
| - FakePictureLayerImpl* child_picture = NULL; |
| - FakePictureLayerImpl* grandchild_picture = NULL; |
| - FakeContentLayerImpl* root_content = NULL; |
| - FakeContentLayerImpl* child_content = NULL; |
| - FakeContentLayerImpl* grandchild_content = NULL; |
| + FakePictureLayerImpl* root_picture = nullptr; |
| + FakePictureLayerImpl* child_picture = nullptr; |
| + FakePictureLayerImpl* grandchild_picture = nullptr; |
| + FakeContentLayerImpl* root_content = nullptr; |
| + FakeContentLayerImpl* child_content = nullptr; |
| + FakeContentLayerImpl* grandchild_content = nullptr; |
| if (layer_tree_host()->settings().impl_side_painting) { |
| root_picture = static_cast<FakePictureLayerImpl*>( |
| @@ -847,7 +847,7 @@ class LayerTreeHostContextTestDontUseLostResources |
| child_resource_provider_ = |
| ResourceProvider::Create(child_output_surface_.get(), |
| shared_bitmap_manager_.get(), |
| - NULL, |
| + nullptr, |
| 0, |
| false, |
| 1, |
| @@ -917,7 +917,7 @@ class LayerTreeHostContextTestDontUseLostResources |
| layer->SetIsDrawable(true); |
| root->AddChild(layer); |
| - scoped_refptr<TextureLayer> texture = TextureLayer::CreateForMailbox(NULL); |
| + scoped_refptr<TextureLayer> texture = TextureLayer::CreateForMailbox(nullptr); |
|
danakj
2014/10/09 16:00:53
and here..
|
| texture->SetBounds(gfx::Size(10, 10)); |
| texture->SetIsDrawable(true); |
| texture->SetTextureMailbox( |
| @@ -1021,8 +1021,8 @@ class LayerTreeHostContextTestDontUseLostResources |
| // On the third commit we're recovering from context loss. Hardware |
| // video frames should not be reused by the VideoFrameProvider, but |
| // software frames can be. |
| - hw_frame_provider_.set_frame(NULL); |
| - scaled_hw_frame_provider_.set_frame(NULL); |
| + hw_frame_provider_.set_frame(nullptr); |
| + scaled_hw_frame_provider_.set_frame(nullptr); |
| } |
| } |