blob: 642bd39d89e0b709a9a94e4af9128605bce70428 [file] [log] [blame]
// Copyright 2018 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/cross_thread_shared_bitmap.h"
namespace cc {
CrossThreadSharedBitmap::CrossThreadSharedBitmap(
const viz::SharedBitmapId& id,
std::unique_ptr<base::SharedMemory> memory,
const gfx::Size& size,
viz::ResourceFormat format)
: id_(id), memory_(std::move(memory)), size_(size), format_(format) {}
CrossThreadSharedBitmap::~CrossThreadSharedBitmap() = default;
} // namespace cc