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