| 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/playback/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/output/render_surface_filters.h" |
| 12 #include "cc/proto/display_item.pb.h" | 12 #include "cc/proto/display_item.pb.h" |
| 13 #include "cc/proto/gfx_conversions.h" | 13 #include "cc/proto/gfx_conversions.h" |
| 14 #include "skia/ext/refptr.h" | |
| 15 #include "third_party/skia/include/core/SkCanvas.h" | 14 #include "third_party/skia/include/core/SkCanvas.h" |
| 16 #include "third_party/skia/include/core/SkImageFilter.h" | 15 #include "third_party/skia/include/core/SkImageFilter.h" |
| 17 #include "third_party/skia/include/core/SkPaint.h" | 16 #include "third_party/skia/include/core/SkPaint.h" |
| 17 #include "third_party/skia/include/core/SkRefCnt.h" |
| 18 #include "third_party/skia/include/core/SkXfermode.h" | 18 #include "third_party/skia/include/core/SkXfermode.h" |
| 19 #include "ui/gfx/skia_util.h" | 19 #include "ui/gfx/skia_util.h" |
| 20 | 20 |
| 21 namespace cc { | 21 namespace cc { |
| 22 class ImageSerializationProcessor; | 22 class ImageSerializationProcessor; |
| 23 | 23 |
| 24 FilterDisplayItem::FilterDisplayItem(const FilterOperations& filters, | 24 FilterDisplayItem::FilterDisplayItem(const FilterOperations& filters, |
| 25 const gfx::RectF& bounds) { | 25 const gfx::RectF& bounds) { |
| 26 SetNew(filters, bounds); | 26 SetNew(filters, bounds); |
| 27 } | 27 } |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 array->AppendString( | 116 array->AppendString( |
| 117 base::StringPrintf("EndFilterDisplayItem visualRect: [%s]", | 117 base::StringPrintf("EndFilterDisplayItem visualRect: [%s]", |
| 118 visual_rect.ToString().c_str())); | 118 visual_rect.ToString().c_str())); |
| 119 } | 119 } |
| 120 | 120 |
| 121 size_t EndFilterDisplayItem::ExternalMemoryUsage() const { | 121 size_t EndFilterDisplayItem::ExternalMemoryUsage() const { |
| 122 return 0; | 122 return 0; |
| 123 } | 123 } |
| 124 | 124 |
| 125 } // namespace cc | 125 } // namespace cc |
| OLD | NEW |