OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "base/debug/trace_event.h" | 5 #include "base/debug/trace_event.h" |
6 #include "cc/content_layer_client.h" | 6 #include "cc/content_layer_client.h" |
7 #include "cc/debug/rendering_stats.h" | 7 #include "cc/debug/rendering_stats.h" |
8 #include "cc/picture.h" | 8 #include "cc/resources/picture.h" |
9 #include "skia/ext/analysis_canvas.h" | 9 #include "skia/ext/analysis_canvas.h" |
10 #include "third_party/skia/include/core/SkCanvas.h" | 10 #include "third_party/skia/include/core/SkCanvas.h" |
11 #include "third_party/skia/include/core/SkData.h" | 11 #include "third_party/skia/include/core/SkData.h" |
12 #include "third_party/skia/include/utils/SkPictureUtils.h" | 12 #include "third_party/skia/include/utils/SkPictureUtils.h" |
13 #include "ui/gfx/rect_conversions.h" | 13 #include "ui/gfx/rect_conversions.h" |
14 #include "ui/gfx/skia_util.h" | 14 #include "ui/gfx/skia_util.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 // URI label for a lazily decoded SkPixelRef. | 17 // URI label for a lazily decoded SkPixelRef. |
18 const char labelLazyDecoded[] = "lazy"; | 18 const char labelLazyDecoded[] = "lazy"; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 if (*refs && (*refs)->getURI() && !strncmp( | 152 if (*refs && (*refs)->getURI() && !strncmp( |
153 (*refs)->getURI(), labelLazyDecoded, 4)) { | 153 (*refs)->getURI(), labelLazyDecoded, 4)) { |
154 pixel_ref_list.push_back(static_cast<skia::LazyPixelRef*>(*refs)); | 154 pixel_ref_list.push_back(static_cast<skia::LazyPixelRef*>(*refs)); |
155 } | 155 } |
156 refs++; | 156 refs++; |
157 } | 157 } |
158 pixel_refs->unref(); | 158 pixel_refs->unref(); |
159 } | 159 } |
160 | 160 |
161 } // namespace cc | 161 } // namespace cc |
OLD | NEW |