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.
5 #include "printing/image.h"
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)) {}
14 Image::Image(const Image& image) = default;
16 Image::~Image() = default;
18 bool Image::operator==(const Image& other) const {
19 return size_ == other.size_ && row_length_ == other.row_length_ &&
23 } // namespace printing