Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: cc/resources/picture.cc

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/resources/picture.h ('k') | cc/resources/picture_layer_tiling.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/resources/picture.h ('k') | cc/resources/picture_layer_tiling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698