OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "cc/animation/animation_host.h" | 9 #include "cc/animation/animation_host.h" |
10 #include "cc/blimp/layer_tree_host_remote.h" | 10 #include "cc/blimp/layer_tree_host_remote.h" |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 layer->SetBounds(gfx::Size(3, 14)); | 292 layer->SetBounds(gfx::Size(3, 14)); |
293 layer->SetDoubleSided(!layer->double_sided()); | 293 layer->SetDoubleSided(!layer->double_sided()); |
294 layer->SetHideLayerAndSubtree(!layer->hide_layer_and_subtree()); | 294 layer->SetHideLayerAndSubtree(!layer->hide_layer_and_subtree()); |
295 layer->SetMasksToBounds(!layer->masks_to_bounds()); | 295 layer->SetMasksToBounds(!layer->masks_to_bounds()); |
296 layer->AddMainThreadScrollingReasons( | 296 layer->AddMainThreadScrollingReasons( |
297 MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects); | 297 MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects); |
298 layer->SetNonFastScrollableRegion(Region(gfx::Rect(5, 1, 14, 3))); | 298 layer->SetNonFastScrollableRegion(Region(gfx::Rect(5, 1, 14, 3))); |
299 layer->SetNonFastScrollableRegion(Region(gfx::Rect(3, 14, 1, 5))); | 299 layer->SetNonFastScrollableRegion(Region(gfx::Rect(3, 14, 1, 5))); |
300 layer->SetContentsOpaque(!layer->contents_opaque()); | 300 layer->SetContentsOpaque(!layer->contents_opaque()); |
301 layer->SetOpacity(0.4f); | 301 layer->SetOpacity(0.4f); |
302 layer->SetBlendMode(SkXfermode::kOverlay_Mode); | 302 layer->SetBlendMode(SkBlendMode::kOverlay); |
303 layer->SetIsRootForIsolatedGroup(!layer->is_root_for_isolated_group()); | 303 layer->SetIsRootForIsolatedGroup(!layer->is_root_for_isolated_group()); |
304 layer->SetPosition(gfx::PointF(3.14f, 6.28f)); | 304 layer->SetPosition(gfx::PointF(3.14f, 6.28f)); |
305 layer->SetIsContainerForFixedPositionLayers( | 305 layer->SetIsContainerForFixedPositionLayers( |
306 !layer->IsContainerForFixedPositionLayers()); | 306 !layer->IsContainerForFixedPositionLayers()); |
307 LayerPositionConstraint pos_con; | 307 LayerPositionConstraint pos_con; |
308 pos_con.set_is_fixed_to_bottom_edge(true); | 308 pos_con.set_is_fixed_to_bottom_edge(true); |
309 layer->SetPositionConstraint(pos_con); | 309 layer->SetPositionConstraint(pos_con); |
310 layer->SetShouldFlattenTransform(!layer->should_flatten_transform()); | 310 layer->SetShouldFlattenTransform(!layer->should_flatten_transform()); |
311 layer->SetUseParentBackfaceVisibility( | 311 layer->SetUseParentBackfaceVisibility( |
312 !layer->use_parent_backface_visibility()); | 312 !layer->use_parent_backface_visibility()); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 FakePictureLayer::Create(EmptyContentLayerClient::GetInstance()); | 403 FakePictureLayer::Create(EmptyContentLayerClient::GetInstance()); |
404 root_layer_src->AddChild(picture_layer_src); | 404 root_layer_src->AddChild(picture_layer_src); |
405 picture_layer_src->SetNeedsDisplay(); | 405 picture_layer_src->SetNeedsDisplay(); |
406 VerifySerializationAndDeserialization(); | 406 VerifySerializationAndDeserialization(); |
407 layer_tree_host_in_process_->UpdateLayers(); | 407 layer_tree_host_in_process_->UpdateLayers(); |
408 VerifySerializedPictureLayersAreIdentical( | 408 VerifySerializedPictureLayersAreIdentical( |
409 picture_layer_src.get(), compositor_state_deserializer_.get()); | 409 picture_layer_src.get(), compositor_state_deserializer_.get()); |
410 } | 410 } |
411 | 411 |
412 } // namespace cc | 412 } // namespace cc |
OLD | NEW |