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

Unified Diff: cc/resources/picture_pile_base.h

Issue 362073002: cc: Remove all traces of SkPicture cloning. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/picture_pile.cc ('k') | cc/resources/picture_pile_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile_base.h
diff --git a/cc/resources/picture_pile_base.h b/cc/resources/picture_pile_base.h
index 317109e1ffd0244e92846ebc84c93132fc03b4c8..3aabcfb5a3012ba7823ba9276115fd5a0b0d9e22 100644
--- a/cc/resources/picture_pile_base.h
+++ b/cc/resources/picture_pile_base.h
@@ -30,7 +30,6 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
public:
PicturePileBase();
explicit PicturePileBase(const PicturePileBase* other);
- PicturePileBase(const PicturePileBase* other, unsigned thread_index);
gfx::Size tiling_size() const { return tiling_.tiling_size(); }
void SetMinContentsScale(float min_contents_scale);
@@ -72,9 +71,8 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
bool Invalidate(int frame_number);
bool NeedsRecording(int frame_number, int distance_to_visible);
- PictureInfo CloneForThread(int thread_index) const;
void SetPicture(scoped_refptr<Picture> picture);
- Picture* GetPicture() const;
+ const Picture* GetPicture() const;
float GetInvalidationFrequencyForTesting() const {
return GetInvalidationFrequency();
@@ -85,7 +83,7 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
float GetInvalidationFrequency() const;
int last_frame_number_;
- scoped_refptr<Picture> picture_;
+ scoped_refptr<const Picture> picture_;
std::bitset<INVALIDATION_FRAMES_TRACKED> invalidation_history_;
};
@@ -97,8 +95,8 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
int buffer_pixels() const { return tiling_.border_texels(); }
void Clear();
- gfx::Rect PaddedRect(const PictureMapKey& key);
- gfx::Rect PadRect(const gfx::Rect& rect);
+ gfx::Rect PaddedRect(const PictureMapKey& key) const;
+ gfx::Rect PadRect(const gfx::Rect& rect) const;
// An internal CanRaster check that goes to the picture_map rather than
// using the recorded_viewport hint.
« no previous file with comments | « cc/resources/picture_pile.cc ('k') | cc/resources/picture_pile_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698