| 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 "platform/graphics/compositing/PaintArtifactCompositor.h" | 5 #include "platform/graphics/compositing/PaintArtifactCompositor.h" |
| 6 | 6 |
| 7 #include "cc/layers/content_layer_client.h" | 7 #include "cc/layers/content_layer_client.h" |
| 8 #include "cc/layers/layer.h" | 8 #include "cc/layers/layer.h" |
| 9 #include "cc/layers/picture_layer.h" | 9 #include "cc/layers/picture_layer.h" |
| 10 #include "cc/playback/display_item_list.h" | 10 #include "cc/playback/display_item_list.h" |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 transform.ConcatTransform(undoClipOffset); | 416 transform.ConcatTransform(undoClipOffset); |
| 417 } | 417 } |
| 418 | 418 |
| 419 scoped_refptr<cc::PictureLayer> layer = cc::PictureLayer::Create(contentLaye
rClient.get()); | 419 scoped_refptr<cc::PictureLayer> layer = cc::PictureLayer::Create(contentLaye
rClient.get()); |
| 420 layer->SetBounds(combinedBounds.size()); | 420 layer->SetBounds(combinedBounds.size()); |
| 421 layer->SetTransform(transform); | 421 layer->SetTransform(transform); |
| 422 layer->SetIsDrawable(true); | 422 layer->SetIsDrawable(true); |
| 423 layer->SetDoubleSided(!paintChunk.properties.backfaceHidden); | 423 layer->SetDoubleSided(!paintChunk.properties.backfaceHidden); |
| 424 if (paintChunk.knownToBeOpaque) | 424 if (paintChunk.knownToBeOpaque) |
| 425 layer->SetContentsOpaque(true); | 425 layer->SetContentsOpaque(true); |
| 426 m_contentLayerClients.append(contentLayerClient.release()); | 426 m_contentLayerClients.append(std::move(contentLayerClient)); |
| 427 return layer; | 427 return layer; |
| 428 } | 428 } |
| 429 | 429 |
| 430 } // namespace blink | 430 } // namespace blink |
| OLD | NEW |