| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/paint/display_item_list.h" | 5 #include "cc/paint/display_item_list.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/trace_event/trace_event_argument.h" | 12 #include "base/trace_event/trace_event_argument.h" |
| 13 #include "cc/base/filter_operation.h" | 13 #include "cc/base/filter_operation.h" |
| 14 #include "cc/base/filter_operations.h" | 14 #include "cc/base/filter_operations.h" |
| 15 #include "cc/paint/clip_display_item.h" | 15 #include "cc/paint/clip_display_item.h" |
| 16 #include "cc/paint/clip_path_display_item.h" | 16 #include "cc/paint/clip_path_display_item.h" |
| 17 #include "cc/paint/compositing_display_item.h" | 17 #include "cc/paint/compositing_display_item.h" |
| 18 #include "cc/paint/drawing_display_item.h" | 18 #include "cc/paint/drawing_display_item.h" |
| 19 #include "cc/paint/filter_display_item.h" | 19 #include "cc/paint/filter_display_item.h" |
| 20 | 20 |
| 21 #include "cc/paint/float_clip_display_item.h" | 21 #include "cc/paint/float_clip_display_item.h" |
| 22 #include "cc/paint/paint_canvas.h" | 22 #include "cc/paint/paint_canvas.h" |
| 23 #include "cc/paint/paint_flags.h" | 23 #include "cc/paint/paint_flags.h" |
| 24 #include "cc/paint/paint_record.h" | 24 #include "cc/paint/paint_record.h" |
| 25 #include "cc/paint/paint_recorder.h" | 25 #include "cc/paint/paint_recorder.h" |
| 26 #include "cc/paint/paint_surface.h" | |
| 27 #include "cc/paint/transform_display_item.h" | 26 #include "cc/paint/transform_display_item.h" |
| 28 #include "cc/test/geometry_test_utils.h" | 27 #include "cc/test/geometry_test_utils.h" |
| 29 #include "cc/test/pixel_test_utils.h" | 28 #include "cc/test/pixel_test_utils.h" |
| 30 #include "cc/test/skia_common.h" | 29 #include "cc/test/skia_common.h" |
| 31 #include "testing/gmock/include/gmock/gmock.h" | 30 #include "testing/gmock/include/gmock/gmock.h" |
| 32 #include "testing/gtest/include/gtest/gtest.h" | 31 #include "testing/gtest/include/gtest/gtest.h" |
| 33 #include "third_party/skia/include/core/SkBitmap.h" | 32 #include "third_party/skia/include/core/SkBitmap.h" |
| 34 #include "third_party/skia/include/core/SkColor.h" | 33 #include "third_party/skia/include/core/SkColor.h" |
| 34 #include "third_party/skia/include/core/SkSurface.h" |
| 35 #include "third_party/skia/include/effects/SkColorMatrixFilter.h" | 35 #include "third_party/skia/include/effects/SkColorMatrixFilter.h" |
| 36 #include "third_party/skia/include/effects/SkImageSource.h" | 36 #include "third_party/skia/include/effects/SkImageSource.h" |
| 37 #include "ui/gfx/geometry/rect.h" | 37 #include "ui/gfx/geometry/rect.h" |
| 38 #include "ui/gfx/geometry/rect_conversions.h" | 38 #include "ui/gfx/geometry/rect_conversions.h" |
| 39 #include "ui/gfx/skia_util.h" | 39 #include "ui/gfx/skia_util.h" |
| 40 | 40 |
| 41 namespace cc { | 41 namespace cc { |
| 42 | 42 |
| 43 namespace { | 43 namespace { |
| 44 | 44 |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 list->CreateAndAppendPairedEndItem<EndClipDisplayItem>(); | 698 list->CreateAndAppendPairedEndItem<EndClipDisplayItem>(); |
| 699 | 699 |
| 700 EXPECT_EQ(4u, list->size()); | 700 EXPECT_EQ(4u, list->size()); |
| 701 EXPECT_RECT_EQ(filter_bounds, list->VisualRectForTesting(0)); | 701 EXPECT_RECT_EQ(filter_bounds, list->VisualRectForTesting(0)); |
| 702 EXPECT_RECT_EQ(filter_bounds, list->VisualRectForTesting(1)); | 702 EXPECT_RECT_EQ(filter_bounds, list->VisualRectForTesting(1)); |
| 703 EXPECT_RECT_EQ(filter_bounds, list->VisualRectForTesting(2)); | 703 EXPECT_RECT_EQ(filter_bounds, list->VisualRectForTesting(2)); |
| 704 EXPECT_RECT_EQ(filter_bounds, list->VisualRectForTesting(3)); | 704 EXPECT_RECT_EQ(filter_bounds, list->VisualRectForTesting(3)); |
| 705 } | 705 } |
| 706 | 706 |
| 707 } // namespace cc | 707 } // namespace cc |
| OLD | NEW |