| 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 9c4d2c200ebd20b4a985dc9a84a035c097bef790..260c9ddfa290d8c05f6b3459c18af224d682e897 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() {
|
| @@ -770,12 +770,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*>(
|
| @@ -854,7 +854,7 @@ class LayerTreeHostContextTestDontUseLostResources
|
| child_resource_provider_ =
|
| ResourceProvider::Create(child_output_surface_.get(),
|
| shared_bitmap_manager_.get(),
|
| - NULL,
|
| + nullptr,
|
| 0,
|
| false,
|
| 1,
|
| @@ -924,7 +924,8 @@ class LayerTreeHostContextTestDontUseLostResources
|
| layer->SetIsDrawable(true);
|
| root->AddChild(layer);
|
|
|
| - scoped_refptr<TextureLayer> texture = TextureLayer::CreateForMailbox(NULL);
|
| + scoped_refptr<TextureLayer> texture =
|
| + TextureLayer::CreateForMailbox(nullptr);
|
| texture->SetBounds(gfx::Size(10, 10));
|
| texture->SetIsDrawable(true);
|
| texture->SetTextureMailbox(
|
| @@ -1028,8 +1029,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);
|
| }
|
| }
|
|
|
|
|