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

Side by Side Diff: cc/picture_pile.h

Issue 11678003: cc: Fix low-res impl-side painting artifacts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: \okayguy{0.0625*f*} 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_layer_impl.cc ('k') | cc/picture_pile.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_H_ 5 #ifndef CC_PICTURE_PILE_H_
6 #define CC_PICTURE_PILE_H_ 6 #define CC_PICTURE_PILE_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 class CC_EXPORT PicturePile { 22 class CC_EXPORT PicturePile {
23 public: 23 public:
24 PicturePile(); 24 PicturePile();
25 ~PicturePile(); 25 ~PicturePile();
26 26
27 // Resize the PicturePile, invalidating / dropping recorded pictures as 27 // Resize the PicturePile, invalidating / dropping recorded pictures as
28 // necessary. 28 // necessary.
29 void Resize(gfx::Size); 29 void Resize(gfx::Size);
30 gfx::Size size() const { return size_; } 30 gfx::Size size() const { return size_; }
31 31
32 void SetMinContentsScale(float min_contents_scale);
33
32 // Re-record parts of the picture that are invalid. 34 // Re-record parts of the picture that are invalid.
33 // Invalidations are in layer space. 35 // Invalidations are in layer space.
34 void Update( 36 void Update(
35 ContentLayerClient* painter, 37 ContentLayerClient* painter,
36 const Region& invalidation, 38 const Region& invalidation,
37 RenderingStats& stats); 39 RenderingStats& stats);
38 40
39 // Update other with a shallow copy of this (main => compositor thread commit) 41 // Update other with a shallow copy of this (main => compositor thread commit)
40 void PushPropertiesTo(PicturePileImpl* other); 42 void PushPropertiesTo(PicturePileImpl* other);
41 43
42 private: 44 private:
43 friend class PicturePileImpl; 45 friend class PicturePileImpl;
44 46
45 void InvalidateRect(gfx::Rect invalidation); 47 void InvalidateRect(gfx::Rect invalidation);
46 void ResetPile(ContentLayerClient* painter, RenderingStats& stats); 48 void ResetPile(ContentLayerClient* painter, RenderingStats& stats);
47 49
48 typedef std::list<scoped_refptr<Picture> > Pile; 50 typedef std::list<scoped_refptr<Picture> > Pile;
49 Pile pile_; 51 Pile pile_;
50 gfx::Size size_; 52 gfx::Size size_;
53 float min_contents_scale_;
54 int buffer_pixels_;
51 55
52 DISALLOW_COPY_AND_ASSIGN(PicturePile); 56 DISALLOW_COPY_AND_ASSIGN(PicturePile);
53 }; 57 };
54 58
55 } // namespace cc 59 } // namespace cc
56 60
57 #endif // CC_PICTURE_PILE_H_ 61 #endif // CC_PICTURE_PILE_H_
OLDNEW
« no previous file with comments | « cc/picture_layer_impl.cc ('k') | cc/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698