| Index: cc/resources/shared_bitmap.cc
|
| diff --git a/cc/resources/shared_bitmap.cc b/cc/resources/shared_bitmap.cc
|
| index 31cf245151c7cdab6a3a77092b11863d3a666d60..1ac03233dfb94e02750573723fa1aeb325db2f8d 100644
|
| --- a/cc/resources/shared_bitmap.cc
|
| +++ b/cc/resources/shared_bitmap.cc
|
| @@ -10,25 +10,13 @@
|
|
|
| namespace cc {
|
|
|
| -SharedBitmap::SharedBitmap(
|
| - base::SharedMemory* memory,
|
| - const SharedBitmapId& id,
|
| - const base::Callback<void(SharedBitmap* bitmap)>& free_callback)
|
| - : memory_(memory),
|
| - pixels_(static_cast<uint8*>(memory_->memory())),
|
| - id_(id),
|
| - free_callback_(free_callback) {
|
| +SharedBitmap::SharedBitmap(uint8* pixels, const SharedBitmapId& id)
|
| + : pixels_(pixels), id_(id) {
|
| }
|
|
|
| -SharedBitmap::SharedBitmap(
|
| - uint8* pixels,
|
| - const SharedBitmapId& id,
|
| - const base::Callback<void(SharedBitmap* bitmap)>& free_callback)
|
| - : memory_(NULL), pixels_(pixels), id_(id), free_callback_(free_callback) {
|
| +SharedBitmap::~SharedBitmap() {
|
| }
|
|
|
| -SharedBitmap::~SharedBitmap() { free_callback_.Run(this); }
|
| -
|
| // static
|
| bool SharedBitmap::SizeInBytes(const gfx::Size& size, size_t* size_in_bytes) {
|
| if (size.IsEmpty())
|
|
|