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

Side by Side Diff: cc/resources/picture_pile_impl.h

Issue 638353002: [C++11 Allowed Features] Declares a type-safe null pointer converting from NULL to nullptr in src/… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formating. Created 6 years, 2 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
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 #ifndef CC_RESOURCES_PICTURE_PILE_IMPL_H_ 5 #ifndef CC_RESOURCES_PICTURE_PILE_IMPL_H_
6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_ 6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 11 matching lines...) Expand all
22 22
23 class CC_EXPORT PicturePileImpl : public PicturePileBase { 23 class CC_EXPORT PicturePileImpl : public PicturePileBase {
24 public: 24 public:
25 static scoped_refptr<PicturePileImpl> Create(); 25 static scoped_refptr<PicturePileImpl> Create();
26 static scoped_refptr<PicturePileImpl> CreateFromOther( 26 static scoped_refptr<PicturePileImpl> CreateFromOther(
27 const PicturePileBase* other); 27 const PicturePileBase* other);
28 28
29 // Raster a subrect of this PicturePileImpl into the given canvas. It is 29 // Raster a subrect of this PicturePileImpl into the given canvas. It is
30 // assumed that contents_scale has already been applied to this canvas. 30 // assumed that contents_scale has already been applied to this canvas.
31 // Writes the total number of pixels rasterized and the time spent 31 // Writes the total number of pixels rasterized and the time spent
32 // rasterizing to the stats if the respective pointer is not NULL. When 32 // rasterizing to the stats if the respective pointer is not nullptr. When
danakj 2014/10/10 17:28:45 just use null
33 // slow-down-raster-scale-factor is set to a value greater than 1, the 33 // slow-down-raster-scale-factor is set to a value greater than 1, the
34 // reported rasterize time is the minimum measured value over all runs. 34 // reported rasterize time is the minimum measured value over all runs.
35 void RasterDirect( 35 void RasterDirect(
36 SkCanvas* canvas, 36 SkCanvas* canvas,
37 const gfx::Rect& canvas_rect, 37 const gfx::Rect& canvas_rect,
38 float contents_scale, 38 float contents_scale,
39 RenderingStatsInstrumentation* rendering_stats_instrumentation); 39 RenderingStatsInstrumentation* rendering_stats_instrumentation);
40 40
41 // Similar to the above RasterDirect method, but this is a convenience method 41 // Similar to the above RasterDirect method, but this is a convenience method
42 // for when it is known that the raster is going to an intermediate bitmap 42 // for when it is known that the raster is going to an intermediate bitmap
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 float contents_scale, 123 float contents_scale,
124 RenderingStatsInstrumentation* rendering_stats_instrumentation, 124 RenderingStatsInstrumentation* rendering_stats_instrumentation,
125 bool is_analysis) const; 125 bool is_analysis) const;
126 126
127 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 127 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
128 }; 128 };
129 129
130 } // namespace cc 130 } // namespace cc
131 131
132 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ 132 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698