[M108 Migration][HBBTV] Implement ewk_context_register_jsplugin_mime_types API
[platform/framework/web/chromium-efl.git] / pdf / paint_ready_rect.cc
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.
4
5 #include "pdf/paint_ready_rect.h"
6
7 #include <utility>
8
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"
13
14 namespace chrome_pdf {
15
16 PaintReadyRect::PaintReadyRect(const gfx::Rect& rect,
17                                sk_sp<SkImage> image,
18                                bool flush_now)
19     : rect_(rect), image_(std::move(image)), flush_now_(flush_now) {
20   DCHECK(image_);
21 }
22
23 PaintReadyRect::PaintReadyRect(const PaintReadyRect& other) = default;
24
25 PaintReadyRect& PaintReadyRect::operator=(const PaintReadyRect& other) =
26     default;
27
28 PaintReadyRect::~PaintReadyRect() = default;
29
30 }  // namespace chrome_pdf