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

Side by Side Diff: cc/picture_pile_impl.h

Issue 12383060: cc: Remove texture scaling and clear edge texels of a layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and expand base picture 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
« no previous file with comments | « cc/picture_pile_base.cc ('k') | cc/picture_pile_impl.cc » ('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 #ifndef CC_PICTURE_PILE_IMPL_H_ 5 #ifndef CC_PICTURE_PILE_IMPL_H_
6 #define CC_PICTURE_PILE_IMPL_H_ 6 #define CC_PICTURE_PILE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
(...skipping 14 matching lines...) Expand all
25 PicturePileImpl* GetCloneForDrawingOnThread(base::Thread*); 25 PicturePileImpl* GetCloneForDrawingOnThread(base::Thread*);
26 26
27 // Clone a paint-safe version of this picture. 27 // Clone a paint-safe version of this picture.
28 scoped_refptr<PicturePileImpl> CloneForDrawing() const; 28 scoped_refptr<PicturePileImpl> CloneForDrawing() const;
29 29
30 // Raster a subrect of this PicturePileImpl into the given canvas. 30 // Raster a subrect of this PicturePileImpl into the given canvas.
31 // It's only safe to call paint on a cloned version. 31 // It's only safe to call paint on a cloned version.
32 // It is assumed that contentsScale has already been applied to this canvas. 32 // It is assumed that contentsScale has already been applied to this canvas.
33 void Raster( 33 void Raster(
34 SkCanvas* canvas, 34 SkCanvas* canvas,
35 gfx::Rect content_rect, 35 gfx::Rect canvas_rect,
36 float contents_scale, 36 float contents_scale,
37 int64* total_pixels_rasterized); 37 int64* total_pixels_rasterized);
38 38
39 void GatherPixelRefs( 39 void GatherPixelRefs(
40 gfx::Rect content_rect, 40 gfx::Rect content_rect,
41 float contents_scale, 41 float contents_scale,
42 std::list<skia::LazyPixelRef*>& pixel_refs); 42 std::list<skia::LazyPixelRef*>& pixel_refs);
43 43
44 void PushPropertiesTo(PicturePileImpl* other); 44 void PushPropertiesTo(PicturePileImpl* other);
45 45
(...skipping 16 matching lines...) Expand all
62 CloneMap clones_; 62 CloneMap clones_;
63 63
64 int slow_down_raster_scale_factor_for_debug_; 64 int slow_down_raster_scale_factor_for_debug_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 66 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
67 }; 67 };
68 68
69 } // namespace cc 69 } // namespace cc
70 70
71 #endif // CC_PICTURE_PILE_IMPL_H_ 71 #endif // CC_PICTURE_PILE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/picture_pile_base.cc ('k') | cc/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698