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

Side by Side Diff: cc/picture_pile_impl.h

Issue 11466032: cc: Fix impl-side painting rasterization at >1 contents scales (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/picture.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 <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 16 matching lines...) Expand all
27 PicturePileImpl* GetCloneForDrawingOnThread(base::Thread*); 27 PicturePileImpl* GetCloneForDrawingOnThread(base::Thread*);
28 28
29 // Clone a paint-safe version of this picture. 29 // Clone a paint-safe version of this picture.
30 scoped_refptr<PicturePileImpl> CloneForDrawing() const; 30 scoped_refptr<PicturePileImpl> CloneForDrawing() const;
31 31
32 // Raster a subrect of this PicturePileImpl into the given canvas. 32 // Raster a subrect of this PicturePileImpl into the given canvas.
33 // It's only safe to call paint on a cloned version. 33 // It's only safe to call paint on a cloned version.
34 // It is assumed that contentsScale has already been applied to this canvas. 34 // It is assumed that contentsScale has already been applied to this canvas.
35 void Raster( 35 void Raster(
36 SkCanvas* canvas, 36 SkCanvas* canvas,
37 gfx::Rect rect, 37 gfx::Rect content_rect,
38 float contents_scale, 38 float contents_scale,
39 RenderingStats* stats); 39 RenderingStats* stats);
40 40
41 private: 41 private:
42 friend class PicturePile; 42 friend class PicturePile;
43 43
44 PicturePileImpl(); 44 PicturePileImpl();
45 ~PicturePileImpl(); 45 ~PicturePileImpl();
46 46
47 PicturePile::Pile pile_; 47 PicturePile::Pile pile_;
48 48
49 typedef std::map<base::PlatformThreadId, scoped_refptr<PicturePileImpl> > 49 typedef std::map<base::PlatformThreadId, scoped_refptr<PicturePileImpl> >
50 CloneMap; 50 CloneMap;
51 CloneMap clones_; 51 CloneMap clones_;
52 52
53 friend class base::RefCounted<PicturePileImpl>; 53 friend class base::RefCounted<PicturePileImpl>;
54 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 54 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
55 }; 55 };
56 56
57 } // namespace cc 57 } // namespace cc
58 58
59 #endif // CC_PICTURE_PILE_IMPL_H_ 59 #endif // CC_PICTURE_PILE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/picture.cc ('k') | cc/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698