| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include "cc/layers/content_layer_client.h" | 10 #include "cc/layers/content_layer_client.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "platform/graphics/paint/ClipPaintPropertyNode.h" | 24 #include "platform/graphics/paint/ClipPaintPropertyNode.h" |
| 25 #include "platform/graphics/paint/DisplayItem.h" | 25 #include "platform/graphics/paint/DisplayItem.h" |
| 26 #include "platform/graphics/paint/DrawingDisplayItem.h" | 26 #include "platform/graphics/paint/DrawingDisplayItem.h" |
| 27 #include "platform/graphics/paint/ForeignLayerDisplayItem.h" | 27 #include "platform/graphics/paint/ForeignLayerDisplayItem.h" |
| 28 #include "platform/graphics/paint/GeometryMapper.h" | 28 #include "platform/graphics/paint/GeometryMapper.h" |
| 29 #include "platform/graphics/paint/PaintArtifact.h" | 29 #include "platform/graphics/paint/PaintArtifact.h" |
| 30 #include "platform/graphics/paint/PropertyTreeState.h" | 30 #include "platform/graphics/paint/PropertyTreeState.h" |
| 31 #include "platform/graphics/paint/RasterInvalidationTracking.h" | 31 #include "platform/graphics/paint/RasterInvalidationTracking.h" |
| 32 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" | 32 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" |
| 33 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | 33 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| 34 #include "platform/wtf/Allocator.h" |
| 35 #include "platform/wtf/Noncopyable.h" |
| 36 #include "platform/wtf/PtrUtil.h" |
| 34 #include "public/platform/Platform.h" | 37 #include "public/platform/Platform.h" |
| 35 #include "public/platform/WebCompositorSupport.h" | 38 #include "public/platform/WebCompositorSupport.h" |
| 36 #include "public/platform/WebLayer.h" | 39 #include "public/platform/WebLayer.h" |
| 37 #include "ui/gfx/geometry/point.h" | 40 #include "ui/gfx/geometry/point.h" |
| 38 #include "ui/gfx/geometry/point_f.h" | 41 #include "ui/gfx/geometry/point_f.h" |
| 39 #include "ui/gfx/geometry/rect.h" | 42 #include "ui/gfx/geometry/rect.h" |
| 40 #include "ui/gfx/geometry/rect_f.h" | 43 #include "ui/gfx/geometry/rect_f.h" |
| 41 #include "ui/gfx/geometry/size.h" | 44 #include "ui/gfx/geometry/size.h" |
| 42 #include "ui/gfx/geometry/size_conversions.h" | 45 #include "ui/gfx/geometry/size_conversions.h" |
| 43 #include "ui/gfx/geometry/size_f.h" | 46 #include "ui/gfx/geometry/size_f.h" |
| 44 #include "ui/gfx/skia_util.h" | 47 #include "ui/gfx/skia_util.h" |
| 45 #include "wtf/Allocator.h" | |
| 46 #include "wtf/Noncopyable.h" | |
| 47 #include "wtf/PtrUtil.h" | |
| 48 | 48 |
| 49 namespace blink { | 49 namespace blink { |
| 50 | 50 |
| 51 template class RasterInvalidationTrackingMap<const cc::Layer>; | 51 template class RasterInvalidationTrackingMap<const cc::Layer>; |
| 52 static RasterInvalidationTrackingMap<const cc::Layer>& | 52 static RasterInvalidationTrackingMap<const cc::Layer>& |
| 53 ccLayersRasterInvalidationTrackingMap() { | 53 ccLayersRasterInvalidationTrackingMap() { |
| 54 DEFINE_STATIC_LOCAL(RasterInvalidationTrackingMap<const cc::Layer>, map, ()); | 54 DEFINE_STATIC_LOCAL(RasterInvalidationTrackingMap<const cc::Layer>, map, ()); |
| 55 return map; | 55 return map; |
| 56 } | 56 } |
| 57 | 57 |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 #ifndef NDEBUG | 661 #ifndef NDEBUG |
| 662 void PaintArtifactCompositor::showDebugData() { | 662 void PaintArtifactCompositor::showDebugData() { |
| 663 LOG(ERROR) << layersAsJSON(LayerTreeIncludesDebugInfo) | 663 LOG(ERROR) << layersAsJSON(LayerTreeIncludesDebugInfo) |
| 664 ->toPrettyJSONString() | 664 ->toPrettyJSONString() |
| 665 .utf8() | 665 .utf8() |
| 666 .data(); | 666 .data(); |
| 667 } | 667 } |
| 668 #endif | 668 #endif |
| 669 | 669 |
| 670 } // namespace blink | 670 } // namespace blink |
| OLD | NEW |