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

Unified Diff: cc/resources/picture_pile_base.h

Issue 666273002: cc: Added raster source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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.h ('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 07540cbf37f508d4ad23ac037ce6def09f641aab..9355e382f2e76969b52058cb8a0680383e965f58 100644
--- a/cc/resources/picture_pile_base.h
+++ b/cc/resources/picture_pile_base.h
@@ -10,7 +10,6 @@
#include <utility>
#include "base/containers/hash_tables.h"
-#include "base/memory/ref_counted.h"
#include "cc/base/cc_export.h"
#include "cc/base/region.h"
#include "cc/base/tiling_data.h"
@@ -26,8 +25,7 @@ class Value;
namespace cc {
-class CC_EXPORT PicturePileBase
- : public base::RefCountedThreadSafe<PicturePileBase> {
+class CC_EXPORT PicturePileBase {
public:
PicturePileBase();
explicit PicturePileBase(const PicturePileBase* other);
@@ -44,7 +42,7 @@ class CC_EXPORT PicturePileBase
int num_tiles_y() const { return tiling_.num_tiles_y(); }
gfx::Rect tile_bounds(int x, int y) const { return tiling_.TileBounds(x, y); }
bool HasRecordingAt(int x, int y);
- bool CanRaster(float contents_scale, const gfx::Rect& content_rect);
+ bool CanRaster(float contents_scale, const gfx::Rect& content_rect) const;
// If this pile contains any valid recordings. May have false positives.
bool HasRecordings() const { return has_any_recordings_; }
@@ -137,7 +135,6 @@ class CC_EXPORT PicturePileBase
private:
void SetBufferPixels(int buffer_pixels);
- friend class base::RefCountedThreadSafe<PicturePileBase>;
DISALLOW_COPY_AND_ASSIGN(PicturePileBase);
};
« no previous file with comments | « cc/resources/picture_pile.h ('k') | cc/resources/picture_pile_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698