[M120 Migration][MM] Fix EME AD insert issue
[platform/framework/web/chromium-efl.git] / printing / image.cc
1 // Copyright 2011 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 "printing/image.h"
6
7 #include <utility>
8
9 namespace printing {
10
11 Image::Image(gfx::Size size, int line_stride, std::vector<unsigned char> buffer)
12     : size_(size), row_length_(line_stride), data_(std::move(buffer)) {}
13
14 Image::Image(const Image& image) = default;
15
16 Image::~Image() = default;
17
18 bool Image::operator==(const Image& other) const {
19   return size_ == other.size_ && row_length_ == other.row_length_ &&
20          data_ == other.data_;
21 }
22
23 }  // namespace printing