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

Side by Side Diff: cc/picture_pile_impl.h

Issue 11882037: Activate LayerImpl tree with sync+push instead of pointer swap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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/picture_pile.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 20 matching lines...) Expand all
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 content_rect,
36 float contents_scale, 36 float contents_scale,
37 RenderingStats* stats); 37 RenderingStats* stats);
38 38
39 void GatherPixelRefs(const gfx::Rect&, std::list<skia::LazyPixelRef*>&); 39 void GatherPixelRefs(const gfx::Rect&, std::list<skia::LazyPixelRef*>&);
40 40
41 void PushPropertiesTo(PicturePileImpl* other);
42
41 skia::RefPtr<SkPicture> GetFlattenedPicture(); 43 skia::RefPtr<SkPicture> GetFlattenedPicture();
42 44
43 private: 45 private:
44 friend class PicturePile; 46 friend class PicturePile;
45 47
46 PicturePileImpl(); 48 PicturePileImpl();
47 ~PicturePileImpl(); 49 ~PicturePileImpl();
48 50
49 typedef std::map<base::PlatformThreadId, scoped_refptr<PicturePileImpl> > 51 typedef std::map<base::PlatformThreadId, scoped_refptr<PicturePileImpl> >
50 CloneMap; 52 CloneMap;
51 CloneMap clones_; 53 CloneMap clones_;
52 54
53 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 55 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
54 }; 56 };
55 57
56 } // namespace cc 58 } // namespace cc
57 59
58 #endif // CC_PICTURE_PILE_IMPL_H_ 60 #endif // CC_PICTURE_PILE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/picture_pile.cc ('k') | cc/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698