// Copyright 2020 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 "pdf/paint_ready_rect.h" #include "pdf/ppapi_migration/geometry_conversions.h" #include "ppapi/cpp/image_data.h" #include "ppapi/cpp/rect.h" namespace chrome_pdf { PaintReadyRect::PaintReadyRect(const pp::Rect& rect, const pp::ImageData& image_data, bool flush_now) : rect_(RectFromPPRect(rect)), image_(image_data), flush_now_(flush_now) {} PaintReadyRect::PaintReadyRect(const gfx::Rect& rect, const SkBitmap& bitmap, bool flush_now) : rect_(rect), image_(bitmap), flush_now_(flush_now) {} PaintReadyRect::PaintReadyRect(const PaintReadyRect& other) = default; PaintReadyRect& PaintReadyRect::operator=(const PaintReadyRect& other) = default; PaintReadyRect::~PaintReadyRect() = default; } // namespace chrome_pdf