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

Unified Diff: cc/resources/picture.cc

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/picture.h ('k') | cc/resources/picture_layer_tiling.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.cc
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
index 701d8ac6443e92e9c2534857682b03cfead457e7..d3ddc532c89a19e4e7dd0c4cd4f3a08000347f65 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -30,8 +30,7 @@ class DisableLCDTextFilter : public SkDrawFilter {
return true;
}
};
-
-}
+} // namespace
namespace cc {
@@ -169,7 +168,7 @@ void Picture::GatherPixelRefs(const gfx::Rect& layer_rect,
}
SkPixelRef** refs = reinterpret_cast<SkPixelRef**>(data);
- for (unsigned int i = 0; i < pixel_refs->size() / sizeof(SkPixelRef*); ++i) {
+ for (size_t i = 0; i < pixel_refs->size() / sizeof(*refs); ++i) {
if (*refs && (*refs)->getURI() && !strncmp(
(*refs)->getURI(), kLabelLazyDecoded, 4)) {
pixel_ref_list.push_back(static_cast<skia::LazyPixelRef*>(*refs));
« 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