1 // Copyright 2020 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "pdf/paint_ready_rect.h"
9 #include "base/check.h"
10 #include "third_party/skia/include/core/SkImage.h"
11 #include "third_party/skia/include/core/SkRefCnt.h"
12 #include "ui/gfx/geometry/rect.h"
14 namespace chrome_pdf {
16 PaintReadyRect::PaintReadyRect(const gfx::Rect& rect,
19 : rect_(rect), image_(std::move(image)), flush_now_(flush_now) {
23 PaintReadyRect::PaintReadyRect(const PaintReadyRect& other) = default;
25 PaintReadyRect& PaintReadyRect::operator=(const PaintReadyRect& other) =
28 PaintReadyRect::~PaintReadyRect() = default;
30 } // namespace chrome_pdf