[AndroidWebViewShell] Replace rebaseline script with a new version using test_runner.py
[chromium-blink-merge.git] / components / enhanced_bookmarks / image_record.cc
blob2e380f0b009eab0c2d0b8dc53410c16dceed3419
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/enhanced_bookmarks/image_record.h"
7 namespace enhanced_bookmarks {
9 ImageRecord::ImageRecord(scoped_ptr<gfx::Image> image,
10 const GURL& url,
11 SkColor dominant_color)
12 : image(image.Pass()),
13 url(url),
14 dominant_color(dominant_color) {
17 ImageRecord::ImageRecord(scoped_ptr<gfx::Image> image, const GURL& url)
18 : ImageRecord(image.Pass(), url, SK_ColorBLACK) {
21 ImageRecord::ImageRecord()
22 : ImageRecord(scoped_ptr<gfx::Image>(new gfx::Image()), GURL()) {
25 ImageRecord::~ImageRecord() {
28 } // namespace enhanced_bookmarks