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

Side by Side Diff: cc/layers/painted_scrollbar_layer.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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
« no previous file with comments | « cc/layers/painted_scrollbar_layer.h ('k') | cc/layers/painted_scrollbar_layer_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/layers/painted_scrollbar_layer.h" 5 #include "cc/layers/painted_scrollbar_layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/basictypes.h"
11 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
12 #include "cc/base/math_util.h" 11 #include "cc/base/math_util.h"
13 #include "cc/layers/painted_scrollbar_layer_impl.h" 12 #include "cc/layers/painted_scrollbar_layer_impl.h"
14 #include "cc/resources/ui_resource_bitmap.h" 13 #include "cc/resources/ui_resource_bitmap.h"
15 #include "cc/trees/draw_property_utils.h" 14 #include "cc/trees/draw_property_utils.h"
16 #include "cc/trees/layer_tree_host.h" 15 #include "cc/trees/layer_tree_host.h"
17 #include "cc/trees/layer_tree_impl.h" 16 #include "cc/trees/layer_tree_impl.h"
18 #include "skia/ext/platform_canvas.h" 17 #include "skia/ext/platform_canvas.h"
19 #include "skia/ext/refptr.h" 18 #include "skia/ext/refptr.h"
20 #include "third_party/skia/include/core/SkBitmap.h" 19 #include "third_party/skia/include/core/SkBitmap.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 302
304 scrollbar_->PaintPart(&skcanvas, part, layer_rect); 303 scrollbar_->PaintPart(&skcanvas, part, layer_rect);
305 // Make sure that the pixels are no longer mutable to unavoid unnecessary 304 // Make sure that the pixels are no longer mutable to unavoid unnecessary
306 // allocation and copying. 305 // allocation and copying.
307 skbitmap.setImmutable(); 306 skbitmap.setImmutable();
308 307
309 return UIResourceBitmap(skbitmap); 308 return UIResourceBitmap(skbitmap);
310 } 309 }
311 310
312 } // namespace cc 311 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/painted_scrollbar_layer.h ('k') | cc/layers/painted_scrollbar_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698