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/drawing_display_item.h" | 5 #include "cc/playback/drawing_display_item.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
10 #include "base/trace_event/trace_event_argument.h" | 12 #include "base/trace_event/trace_event_argument.h" |
11 #include "base/values.h" | 13 #include "base/values.h" |
12 #include "cc/debug/picture_debug_util.h" | 14 #include "cc/debug/picture_debug_util.h" |
13 #include "cc/proto/display_item.pb.h" | 15 #include "cc/proto/display_item.pb.h" |
14 #include "third_party/skia/include/core/SkCanvas.h" | 16 #include "third_party/skia/include/core/SkCanvas.h" |
15 #include "third_party/skia/include/core/SkData.h" | 17 #include "third_party/skia/include/core/SkData.h" |
16 #include "third_party/skia/include/core/SkMatrix.h" | 18 #include "third_party/skia/include/core/SkMatrix.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 131 |
130 int DrawingDisplayItem::ApproximateOpCount() const { | 132 int DrawingDisplayItem::ApproximateOpCount() const { |
131 return picture_->approximateOpCount(); | 133 return picture_->approximateOpCount(); |
132 } | 134 } |
133 | 135 |
134 bool DrawingDisplayItem::IsSuitableForGpuRasterization() const { | 136 bool DrawingDisplayItem::IsSuitableForGpuRasterization() const { |
135 return picture_->suitableForGpuRasterization(NULL); | 137 return picture_->suitableForGpuRasterization(NULL); |
136 } | 138 } |
137 | 139 |
138 } // namespace cc | 140 } // namespace cc |
OLD | NEW |