| 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" |
| 11 #include "cc/playback/display_item_list_settings.h" | 11 #include "cc/playback/display_item_list_settings.h" |
| 12 #include "cc/playback/drawing_display_item.h" | 12 #include "cc/playback/drawing_display_item.h" |
| 13 #include "cc/playback/transform_display_item.h" | 13 #include "cc/playback/transform_display_item.h" |
| 14 #include "cc/trees/layer_tree_host.h" | 14 #include "cc/trees/layer_tree_host.h" |
| 15 #include "platform/RuntimeEnabledFeatures.h" | 15 #include "platform/RuntimeEnabledFeatures.h" |
| 16 #include "platform/graphics/paint/ClipPaintPropertyNode.h" | 16 #include "platform/graphics/paint/ClipPaintPropertyNode.h" |
| 17 #include "platform/graphics/paint/DisplayItem.h" | 17 #include "platform/graphics/paint/DisplayItem.h" |
| 18 #include "platform/graphics/paint/DrawingDisplayItem.h" | 18 #include "platform/graphics/paint/DrawingDisplayItem.h" |
| 19 #include "platform/graphics/paint/ForeignLayerDisplayItem.h" | 19 #include "platform/graphics/paint/ForeignLayerDisplayItem.h" |
| 20 #include "platform/graphics/paint/PaintArtifact.h" | 20 #include "platform/graphics/paint/PaintArtifact.h" |
| 21 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | 21 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| 22 #include "public/platform/Platform.h" | 22 #include "public/platform/Platform.h" |
| 23 #include "public/platform/WebCompositorSupport.h" | 23 #include "public/platform/WebCompositorSupport.h" |
| 24 #include "public/platform/WebLayer.h" | 24 #include "public/platform/WebLayer.h" |
| 25 #include "skia/ext/refptr.h" | |
| 26 #include "ui/gfx/geometry/point.h" | 25 #include "ui/gfx/geometry/point.h" |
| 27 #include "ui/gfx/geometry/point_f.h" | 26 #include "ui/gfx/geometry/point_f.h" |
| 28 #include "ui/gfx/geometry/rect.h" | 27 #include "ui/gfx/geometry/rect.h" |
| 29 #include "ui/gfx/geometry/rect_f.h" | 28 #include "ui/gfx/geometry/rect_f.h" |
| 30 #include "ui/gfx/geometry/size.h" | 29 #include "ui/gfx/geometry/size.h" |
| 31 #include "ui/gfx/geometry/size_conversions.h" | 30 #include "ui/gfx/geometry/size_conversions.h" |
| 32 #include "ui/gfx/geometry/size_f.h" | 31 #include "ui/gfx/geometry/size_f.h" |
| 33 #include "ui/gfx/skia_util.h" | 32 #include "ui/gfx/skia_util.h" |
| 34 #include "wtf/Allocator.h" | 33 #include "wtf/Allocator.h" |
| 35 #include "wtf/Noncopyable.h" | 34 #include "wtf/Noncopyable.h" |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 layer->SetTransform(transform); | 420 layer->SetTransform(transform); |
| 422 layer->SetIsDrawable(true); | 421 layer->SetIsDrawable(true); |
| 423 layer->SetDoubleSided(!paintChunk.properties.backfaceHidden); | 422 layer->SetDoubleSided(!paintChunk.properties.backfaceHidden); |
| 424 if (paintChunk.knownToBeOpaque) | 423 if (paintChunk.knownToBeOpaque) |
| 425 layer->SetContentsOpaque(true); | 424 layer->SetContentsOpaque(true); |
| 426 m_contentLayerClients.append(std::move(contentLayerClient)); | 425 m_contentLayerClients.append(std::move(contentLayerClient)); |
| 427 return layer; | 426 return layer; |
| 428 } | 427 } |
| 429 | 428 |
| 430 } // namespace blink | 429 } // namespace blink |
| OLD | NEW |