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/playback/filter_display_item.h" | 5 #include "cc/paint/filter_display_item.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/trace_event/trace_event_argument.h" | 10 #include "base/trace_event/trace_event_argument.h" |
11 #include "cc/output/render_surface_filters.h" | 11 #include "cc/paint/render_surface_filters.h" |
12 #include "third_party/skia/include/core/SkCanvas.h" | 12 #include "third_party/skia/include/core/SkCanvas.h" |
13 #include "third_party/skia/include/core/SkImageFilter.h" | 13 #include "third_party/skia/include/core/SkImageFilter.h" |
14 #include "third_party/skia/include/core/SkPaint.h" | 14 #include "third_party/skia/include/core/SkPaint.h" |
15 #include "third_party/skia/include/core/SkRefCnt.h" | 15 #include "third_party/skia/include/core/SkRefCnt.h" |
16 #include "ui/gfx/skia_util.h" | 16 #include "ui/gfx/skia_util.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 | 19 |
20 FilterDisplayItem::FilterDisplayItem(const FilterOperations& filters, | 20 FilterDisplayItem::FilterDisplayItem(const FilterOperations& filters, |
21 const gfx::RectF& bounds, | 21 const gfx::RectF& bounds, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 EndFilterDisplayItem::~EndFilterDisplayItem() {} | 57 EndFilterDisplayItem::~EndFilterDisplayItem() {} |
58 | 58 |
59 void EndFilterDisplayItem::Raster(SkCanvas* canvas, | 59 void EndFilterDisplayItem::Raster(SkCanvas* canvas, |
60 SkPicture::AbortCallback* callback) const { | 60 SkPicture::AbortCallback* callback) const { |
61 canvas->restore(); | 61 canvas->restore(); |
62 canvas->restore(); | 62 canvas->restore(); |
63 } | 63 } |
64 | 64 |
65 } // namespace cc | 65 } // namespace cc |
OLD | NEW |