Home
last modified time | relevance | path

Searched refs:layer_tree_host_ (Results 1 – 25 of 30) sorted by relevance

12

/external/chromium_org/content/test/
Dweb_layer_tree_view_impl_for_testing.cc45 layer_tree_host_ = cc::LayerTreeHost::CreateSingleThreaded( in Initialize()
47 DCHECK(layer_tree_host_); in Initialize()
51 layer_tree_host_->SetLayerTreeHostClientReady(); in setSurfaceReady()
56 layer_tree_host_->SetRootLayer( in setRootLayer()
61 layer_tree_host_->SetRootLayer(scoped_refptr<cc::Layer>()); in clearRootLayer()
67 layer_tree_host_->SetViewportSize(device_viewport_size); in setViewportSize()
72 layer_tree_host_->SetViewportSize(device_viewport_size); in setViewportSize()
76 return layer_tree_host_->device_viewport_size(); in layoutViewportSize()
80 return layer_tree_host_->device_viewport_size(); in deviceViewportSize()
85 layer_tree_host_->SetDeviceScaleFactor(device_scale_factor); in setDeviceScaleFactor()
[all …]
/external/chromium_org/cc/debug/
Dmicro_benchmark_controller_unittest.cc30 layer_tree_host_ = FakeLayerTreeHost::Create(&layer_tree_host_client_); in SetUp()
31 layer_tree_host_->SetRootLayer(Layer::Create()); in SetUp()
32 layer_tree_host_->InitializeForTesting(scoped_ptr<Proxy>(new FakeProxy)); in SetUp()
37 layer_tree_host_.reset(); in TearDown()
42 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; member in cc::__anon5e61ce270111::MicroBenchmarkControllerTest
56 int id = layer_tree_host_->ScheduleMicroBenchmark( in TEST_F()
62 EXPECT_FALSE(layer_tree_host_->needs_commit()); in TEST_F()
63 int id = layer_tree_host_->ScheduleMicroBenchmark( in TEST_F()
66 EXPECT_TRUE(layer_tree_host_->needs_commit()); in TEST_F()
71 int id = layer_tree_host_->ScheduleMicroBenchmark( in TEST_F()
[all …]
/external/chromium_org/mojo/services/html_viewer/
Dweblayertreeview_impl.cc43 layer_tree_host_ = in WebLayerTreeViewImpl()
49 DCHECK(layer_tree_host_); in WebLayerTreeViewImpl()
83 layer_tree_host_->SetOutputSurface(output_surface_.Pass()); in RequestNewOutputSurface()
106 layer_tree_host_->SetRootLayer( in setRootLayer()
111 layer_tree_host_->SetRootLayer(scoped_refptr<cc::Layer>()); in clearRootLayer()
116 layer_tree_host_->SetViewportSize(device_viewport_size); in setViewportSize()
120 return layer_tree_host_->device_viewport_size(); in deviceViewportSize()
124 layer_tree_host_->SetDeviceScaleFactor(device_scale_factor); in setDeviceScaleFactor()
128 return layer_tree_host_->device_scale_factor(); in deviceScaleFactor()
132 layer_tree_host_->set_background_color(color); in setBackgroundColor()
[all …]
/external/chromium_org/content/renderer/gpu/
Drender_widget_compositor.cc439 return layer_tree_host_->GetInputHandler(); in GetInputHandler()
443 return layer_tree_host_->BeginMainFrameRequested(); in BeginMainFrameRequested()
447 layer_tree_host_->SetNeedsDisplayOnAllLayers(); in SetNeedsDisplayOnAllLayers()
451 cc::LayerTreeDebugState current = layer_tree_host_->debug_state(); in SetRasterizeOnlyVisibleContent()
453 layer_tree_host_->SetDebugState(current); in SetRasterizeOnlyVisibleContent()
460 layer_tree_host_->UpdateTopControlsState(constraints, in UpdateTopControlsState()
466 layer_tree_host_->SetTopControlsLayoutHeight(height); in SetTopControlsLayoutHeight()
470 layer_tree_host_->SetNeedsRedrawRect(damage_rect); in SetNeedsRedrawRect()
474 layer_tree_host_->SetNextCommitForcesRedraw(); in SetNeedsForcedRedraw()
483 latency, layer_tree_host_.get(), NULL)); in CreateLatencyInfoSwapPromiseMonitor()
[all …]
/external/chromium_org/cc/trees/
Dsingle_thread_proxy.cc38 layer_tree_host_(layer_tree_host), in SingleThreadProxy()
58 layer_tree_host_impl_ = layer_tree_host_->CreateLayerTreeHostImpl(this); in Start()
88 if (layer_tree_host_->settings().single_thread_proxy_scheduler && in SetLayerTreeHostClientReady()
90 SchedulerSettings scheduler_settings(layer_tree_host_->settings()); in SetLayerTreeHostClientReady()
93 layer_tree_host_->id(), in SetLayerTreeHostClientReady()
112 DCHECK(layer_tree_host_->output_surface_lost()); in RequestNewOutputSurface()
113 layer_tree_host_->RequestNewOutputSurface(); in RequestNewOutputSurface()
119 DCHECK(layer_tree_host_->output_surface_lost()); in SetOutputSurface()
126 layer_tree_host_->DeleteContentsTexturesOnImplThread( in SetOutputSurface()
131 layer_tree_host_->OnCreateAndInitializeOutputSurfaceAttempted(success); in SetOutputSurface()
[all …]
Dlayer_tree_host_unittest_no_message_loop.cc64 layer_tree_host_->SetOutputSurface( in RequestNewOutputSurface()
99 layer_tree_host_ = in SetupLayerTreeHost()
101 layer_tree_host_->SetViewportSize(size_); in SetupLayerTreeHost()
102 layer_tree_host_->SetRootLayer(root_layer_); in SetupLayerTreeHost()
108 layer_tree_host_->Composite(gfx::FrameTime::Now()); in Composite()
116 layer_tree_host_.reset(); in TearDownLayerTreeHost()
121 scoped_ptr<LayerTreeHost> layer_tree_host_; member in cc::__anon8a0957de0111::LayerTreeHostNoMessageLoopTest
Dscoped_abort_remaining_swap_promises.h16 : layer_tree_host_(layer_tree_host) {} in ScopedAbortRemainingSwapPromises()
19 layer_tree_host_->BreakSwapPromises(SwapPromise::COMMIT_FAILS); in ~ScopedAbortRemainingSwapPromises()
23 LayerTreeHost* layer_tree_host_;
/external/chromium_org/cc/layers/
Dui_resource_layer_unittest.cc37 layer_tree_host_ = FakeLayerTreeHost::Create(&fake_client_); in SetUp()
38 layer_tree_host_->InitializeSingleThreaded( in SetUp()
43 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in TearDown()
47 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; member in cc::__anon1f08262a0111::UIResourceLayerTest
56 layer_tree_host_->SetRootLayer(test_layer); in TEST_F()
57 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in TEST_F()
58 EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get()); in TEST_F()
84 layer_tree_host_->SetRootLayer(test_layer); in TEST_F()
85 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in TEST_F()
86 EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get()); in TEST_F()
[all …]
Dtiled_layer_unittest.cc110 layer_tree_host_ = SynchronousOutputSurfaceLayerTreeHost::Create( in SetUp()
115 fake_layer_tree_host_client_.SetLayerTreeHost(layer_tree_host_.get()); in SetUp()
116 proxy_ = layer_tree_host_->proxy(); in SetUp()
118 layer_tree_host_->SetLayerTreeHostClientReady(); in SetUp()
119 CHECK(layer_tree_host_->EnsureOutputSurfaceCreated()); in SetUp()
120 layer_tree_host_->SetRootLayer(Layer::Create()); in SetUp()
187 occlusion_->SetRenderTarget(layer_tree_host_->root_layer()); in CalcDrawProps()
190 layer_tree_host_->root_layer(), in CalcDrawProps()
191 layer_tree_host_->device_viewport_size(), in CalcDrawProps()
193 inputs.device_scale_factor = layer_tree_host_->device_scale_factor(); in CalcDrawProps()
[all …]
Dnine_patch_layer_unittest.cc38 layer_tree_host_ = FakeLayerTreeHost::Create(&fake_client_); in SetUp()
42 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in TearDown()
46 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; member in cc::__anon88dc36be0111::NinePatchLayerTest
55 layer_tree_host_->SetRootLayer(test_layer); in TEST_F()
56 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in TEST_F()
57 EXPECT_EQ(test_layer->layer_tree_host(), layer_tree_host_.get()); in TEST_F()
69 layer_tree_host_.get(), UIResourceBitmap(gfx::Size(10, 10), is_opaque)); in TEST_F()
Dscrollbar_layer_unittest.cc703 layer_tree_host_.reset( in TestResourceUpload()
727 layer_tree_host_->SetRootLayer(layer_tree_root); in TestResourceUpload()
740 testing::Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in TestResourceUpload()
741 EXPECT_EQ(scrollbar_layer->layer_tree_host(), layer_tree_host_.get()); in TestResourceUpload()
752 EXPECT_EQ(expected_resources, layer_tree_host_->UIResourceCount()); in TestResourceUpload()
753 EXPECT_EQ(expected_created, layer_tree_host_->TotalUIResourceCreated()); in TestResourceUpload()
754 EXPECT_EQ(expected_deleted, layer_tree_host_->TotalUIResourceDeleted()); in TestResourceUpload()
756 testing::Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in TestResourceUpload()
764 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; member in cc::__anone13bde290111::ScrollbarLayerTestResourceCreationAndRelease
790 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; in TEST_F() local
[all …]
Dtexture_layer_unittest.cc177 layer_tree_host_.reset(new MockLayerTreeHost(&fake_client_)); in SetUp()
178 EXPECT_CALL(*layer_tree_host_, SetNeedsCommit()).Times(AnyNumber()); in SetUp()
179 layer_tree_host_->SetViewportSize(gfx::Size(10, 10)); in SetUp()
180 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in SetUp()
184 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in TearDown()
185 EXPECT_CALL(*layer_tree_host_, SetNeedsCommit()).Times(AnyNumber()); in TearDown()
187 layer_tree_host_->SetRootLayer(NULL); in TearDown()
188 layer_tree_host_.reset(); in TearDown()
191 scoped_ptr<MockLayerTreeHost> layer_tree_host_; member in cc::__anond61082b60111::TextureLayerTest
200 EXPECT_SET_NEEDS_COMMIT(1, layer_tree_host_->SetRootLayer(test_layer)); in TEST_F()
[all …]
Dlayer_unittest.cc32 EXPECT_CALL(*layer_tree_host_, SetNeedsFullTreeSync()).Times((expect)); \
34 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); \
66 layer_tree_host_.reset(new StrictMock<MockLayerTreeHost>(&fake_client_)); in SetUp()
70 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in TearDown()
71 EXPECT_CALL(*layer_tree_host_, SetNeedsFullTreeSync()).Times(AnyNumber()); in TearDown()
80 layer_tree_host_->SetRootLayer(NULL); in TearDown()
81 layer_tree_host_.reset(); in TearDown()
115 EXPECT_CALL(*layer_tree_host_, SetNeedsFullTreeSync()).Times(AnyNumber()); in CreateSimpleTestTree()
116 layer_tree_host_->SetRootLayer(parent_); in CreateSimpleTestTree()
125 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); in CreateSimpleTestTree()
[all …]
Dlayer_perftest.cc42 layer_tree_host_ = FakeLayerTreeHost::Create(&fake_client_); in SetUp()
43 layer_tree_host_->InitializeSingleThreaded( in SetUp()
48 layer_tree_host_->SetRootLayer(NULL); in TearDown()
49 layer_tree_host_.reset(); in TearDown()
57 scoped_ptr<FakeLayerTreeHost> layer_tree_host_; member in cc::__anond41a78530111::LayerPerfTest
66 layer_tree_host_->SetRootLayer(test_layer); in TEST_F()
Dlayer.cc49 layer_tree_host_(NULL), in Layer()
110 if (layer_tree_host_ == host) in SetLayerTreeHost()
113 layer_tree_host_ = host; in SetLayerTreeHost()
140 if (layer_tree_host_ && !ignore_set_needs_commit_) in SetNeedsUpdate()
141 layer_tree_host_->SetNeedsUpdateLayers(); in SetNeedsUpdate()
145 if (!layer_tree_host_) in SetNeedsCommit()
153 layer_tree_host_->SetNeedsCommit(); in SetNeedsCommit()
157 if (!layer_tree_host_) in SetNeedsFullTreeSync()
160 layer_tree_host_->SetNeedsFullTreeSync(); in SetNeedsFullTreeSync()
164 if (!layer_tree_host_) in SetNextCommitWaitsForActivation()
[all …]
Dlayer.h394 LayerTreeHost* layer_tree_host() { return layer_tree_host_; } in layer_tree_host()
395 const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; } in layer_tree_host()
580 LayerTreeHost* layer_tree_host_; variable
/external/chromium_org/cc/test/
Dlayer_tree_test.cc503 layer_tree_host_->SetLayerTreeHostClientReady(); in WillBeginTest()
510 layer_tree_host_ = LayerTreeHostForTesting::Create( in DoBeginTest()
516 ASSERT_TRUE(layer_tree_host_); in DoBeginTest()
529 if (layer_tree_host_) { in DoBeginTest()
530 static_cast<LayerTreeHostForTesting*>(layer_tree_host_.get()) in DoBeginTest()
536 if (!layer_tree_host_->root_layer()) { in SetupTree()
540 layer_tree_host_->SetRootLayer(root_layer); in SetupTree()
543 gfx::Size root_bounds = layer_tree_host_->root_layer()->bounds(); in SetupTree()
545 gfx::ScaleSize(root_bounds, layer_tree_host_->device_scale_factor())); in SetupTree()
546 layer_tree_host_->SetViewportSize(device_root_bounds); in SetupTree()
[all …]
Dfake_proxy.h16 FakeProxy() : Proxy(NULL, NULL), layer_tree_host_(NULL) {} in FakeProxy()
20 : Proxy(main_task_runner, impl_task_runner), layer_tree_host_(NULL) {} in FakeProxy()
55 LayerTreeHost* layer_tree_host_; variable
Dlayer_test_common.h17 EXPECT_CALL(*layer_tree_host_, SetNeedsCommit()).Times((expect)); \
19 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); \
24 EXPECT_CALL(*layer_tree_host_, SetNeedsUpdateLayers()).Times((expect)); \
26 Mock::VerifyAndClearExpectations(layer_tree_host_.get()); \
Dlayer_tree_test.h173 return layer_tree_host_ ? layer_tree_host_->proxy() : NULL; in proxy()
178 LayerTreeHost* layer_tree_host() { return layer_tree_host_.get(); } in layer_tree_host()
198 scoped_ptr<LayerTreeHost> layer_tree_host_; variable
Dfake_proxy.cc10 layer_tree_host_ = host; in SetLayerTreeHost()
/external/chromium_org/cc/base/
Dswap_promise_monitor.cc14 : layer_tree_host_(layer_tree_host), in SwapPromiseMonitor()
18 if (layer_tree_host_) in SwapPromiseMonitor()
19 layer_tree_host_->InsertSwapPromiseMonitor(this); in SwapPromiseMonitor()
25 if (layer_tree_host_) in ~SwapPromiseMonitor()
26 layer_tree_host_->RemoveSwapPromiseMonitor(this); in ~SwapPromiseMonitor()
Dswap_promise_monitor.h39 LayerTreeHost* layer_tree_host_;
Dlatency_info_swap_promise_monitor.cc53 layer_tree_host_->QueueSwapPromise(swap_promise.Pass()); in OnSetNeedsCommitOnMain()
/external/chromium_org/android_webview/browser/
Dhardware_renderer.cc103 layer_tree_host_ = in HardwareRenderer()
105 layer_tree_host_->SetRootLayer(root_layer_); in HardwareRenderer()
106 layer_tree_host_->SetLayerTreeHostClientReady(); in HardwareRenderer()
107 layer_tree_host_->set_has_transparent_background(true); in HardwareRenderer()
115 layer_tree_host_.reset(); in ~HardwareRenderer()
235 layer_tree_host_->SetViewportSize(viewport_); in DrawGL()
248 layer_tree_host_->SetNeedsRedrawRect(clip_); in DrawGL()
249 layer_tree_host_->Composite(gfx::FrameTime::Now()); in DrawGL()
263 layer_tree_host_->SetOutputSurface( in RequestNewOutputSurface()

12