Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: cc/layers/picture_layer_unittest.cc

Issue 202763002: Switch to use SharedBitmapManager all the time in cc_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/render_surface_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/picture_layer.h" 5 #include "cc/layers/picture_layer.h"
6 6
7 #include "cc/layers/content_layer_client.h" 7 #include "cc/layers/content_layer_client.h"
8 #include "cc/layers/picture_layer_impl.h" 8 #include "cc/layers/picture_layer_impl.h"
9 #include "cc/resources/resource_update_queue.h" 9 #include "cc/resources/resource_update_queue.h"
10 #include "cc/test/fake_layer_tree_host.h" 10 #include "cc/test/fake_layer_tree_host.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 layer->SetBounds(gfx::Size(0, 0)); 43 layer->SetBounds(gfx::Size(0, 0));
44 layer->SavePaintProperties(); 44 layer->SavePaintProperties();
45 // Intentionally skipping Update since it would normally be skipped on 45 // Intentionally skipping Update since it would normally be skipped on
46 // a layer with empty bounds. 46 // a layer with empty bounds.
47 47
48 FakeProxy proxy; 48 FakeProxy proxy;
49 { 49 {
50 DebugScopedSetImplThread impl_thread(&proxy); 50 DebugScopedSetImplThread impl_thread(&proxy);
51 51
52 FakeLayerTreeHostImpl host_impl(ImplSidePaintingSettings(), &proxy); 52 TestSharedBitmapManager shared_bitmap_manager;
53 FakeLayerTreeHostImpl host_impl(
54 ImplSidePaintingSettings(), &proxy, &shared_bitmap_manager);
53 host_impl.CreatePendingTree(); 55 host_impl.CreatePendingTree();
54 scoped_ptr<FakePictureLayerImpl> layer_impl = 56 scoped_ptr<FakePictureLayerImpl> layer_impl =
55 FakePictureLayerImpl::Create(host_impl.pending_tree(), 1); 57 FakePictureLayerImpl::Create(host_impl.pending_tree(), 1);
56 58
57 layer->PushPropertiesTo(layer_impl.get()); 59 layer->PushPropertiesTo(layer_impl.get());
58 EXPECT_FALSE(layer_impl->CanHaveTilings()); 60 EXPECT_FALSE(layer_impl->CanHaveTilings());
59 EXPECT_TRUE(layer_impl->bounds() == gfx::Size(0, 0)); 61 EXPECT_TRUE(layer_impl->bounds() == gfx::Size(0, 0));
60 EXPECT_TRUE(layer_impl->pile()->size() == gfx::Size(0, 0)); 62 EXPECT_TRUE(layer_impl->pile()->size() == gfx::Size(0, 0));
61 EXPECT_FALSE(layer_impl->pile()->HasRecordings()); 63 EXPECT_FALSE(layer_impl->pile()->HasRecordings());
62 } 64 }
63 } 65 }
64 66
65 } // namespace 67 } // namespace
66 } // namespace cc 68 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/render_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698