blob: 3a6fc3589e3a8471b9a4d10e75278c76bfbe0a41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/resources/shared_bitmap.h"
namespace cc {
SharedBitmap::SharedBitmap(
base::SharedMemory* memory,
const SharedBitmapId& id,
const base::Callback<void(SharedBitmap*)>& free_callback)
: memory_(memory), id_(id), free_callback_(free_callback) {}
SharedBitmap::~SharedBitmap() { free_callback_.Run(this); }
} // namespace cc
|