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

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: reviews 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
Index: cc/resources/picture_pile_base.h
diff --git a/cc/resources/picture_pile_base.h b/cc/resources/picture_pile_base.h
index bb9116c63f748bbb42398a95021851767d1dc4cf..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,7 +25,7 @@ class Value;
namespace cc {
-class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
+class CC_EXPORT PicturePileBase {
public:
PicturePileBase();
explicit PicturePileBase(const PicturePileBase* other);
@@ -43,7 +42,7 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<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_; }
@@ -136,7 +135,6 @@ class CC_EXPORT PicturePileBase : public base::RefCounted<PicturePileBase> {
private:
void SetBufferPixels(int buffer_pixels);
- friend class base::RefCounted<PicturePileBase>;
DISALLOW_COPY_AND_ASSIGN(PicturePileBase);
};

Powered by Google App Engine
This is Rietveld 408576698