| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "cc/layers/content_layer.h" | 8 #include "cc/layers/content_layer.h" |
| 9 #include "cc/layers/delegated_frame_provider.h" | 9 #include "cc/layers/delegated_frame_provider.h" |
| 10 #include "cc/layers/delegated_frame_resource_collection.h" | 10 #include "cc/layers/delegated_frame_resource_collection.h" |
| (...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 gpu::Mailbox mailbox; | 1141 gpu::Mailbox mailbox; |
| 1142 context3d->genMailboxCHROMIUM(mailbox.name); | 1142 context3d->genMailboxCHROMIUM(mailbox.name); |
| 1143 unsigned sync_point = context3d->insertSyncPoint(); | 1143 unsigned sync_point = context3d->insertSyncPoint(); |
| 1144 | 1144 |
| 1145 scoped_refptr<Layer> root = Layer::Create(); | 1145 scoped_refptr<Layer> root = Layer::Create(); |
| 1146 root->SetBounds(gfx::Size(10, 10)); | 1146 root->SetBounds(gfx::Size(10, 10)); |
| 1147 root->SetAnchorPoint(gfx::PointF()); | 1147 root->SetAnchorPoint(gfx::PointF()); |
| 1148 root->SetIsDrawable(true); | 1148 root->SetIsDrawable(true); |
| 1149 | 1149 |
| 1150 scoped_refptr<FakeDelegatedRendererLayer> delegated = | 1150 scoped_refptr<FakeDelegatedRendererLayer> delegated = |
| 1151 FakeDelegatedRendererLayer::Create(NULL, | 1151 FakeDelegatedRendererLayer::Create(delegated_frame_provider_.get()); |
| 1152 delegated_frame_provider_.get()); | |
| 1153 delegated->SetBounds(gfx::Size(10, 10)); | 1152 delegated->SetBounds(gfx::Size(10, 10)); |
| 1154 delegated->SetAnchorPoint(gfx::PointF()); | 1153 delegated->SetAnchorPoint(gfx::PointF()); |
| 1155 delegated->SetIsDrawable(true); | 1154 delegated->SetIsDrawable(true); |
| 1156 root->AddChild(delegated); | 1155 root->AddChild(delegated); |
| 1157 | 1156 |
| 1158 scoped_refptr<ContentLayer> content = ContentLayer::Create(&client_); | 1157 scoped_refptr<ContentLayer> content = ContentLayer::Create(&client_); |
| 1159 content->SetBounds(gfx::Size(10, 10)); | 1158 content->SetBounds(gfx::Size(10, 10)); |
| 1160 content->SetAnchorPoint(gfx::PointF()); | 1159 content->SetAnchorPoint(gfx::PointF()); |
| 1161 content->SetIsDrawable(true); | 1160 content->SetIsDrawable(true); |
| 1162 root->AddChild(content); | 1161 root->AddChild(content); |
| (...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 protected: | 2289 protected: |
| 2291 FakeContentLayerClient client_; | 2290 FakeContentLayerClient client_; |
| 2292 scoped_refptr<FakeContentLayer> layer_; | 2291 scoped_refptr<FakeContentLayer> layer_; |
| 2293 int num_commits_; | 2292 int num_commits_; |
| 2294 }; | 2293 }; |
| 2295 | 2294 |
| 2296 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostContextTestSurfaceCreateCallback); | 2295 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostContextTestSurfaceCreateCallback); |
| 2297 | 2296 |
| 2298 } // namespace | 2297 } // namespace |
| 2299 } // namespace cc | 2298 } // namespace cc |
| OLD | NEW |