Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Side by Side Diff: cc/playback/draw_image.cc

Issue 1418573002: cc: Add image decode control in the compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/playback/draw_image.h ('k') | cc/tiles/image_decode_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "cc/playback/draw_image.h"
6
7 namespace cc {
8
9 DrawImage::DrawImage()
10 : image_(nullptr),
11 src_rect_(SkIRect::MakeXYWH(0, 0, 0, 0)),
12 scale_(SkSize::Make(1.f, 1.f)),
13 filter_quality_(kNone_SkFilterQuality) {}
14
15 DrawImage::DrawImage(const SkImage* image,
16 const SkIRect& src_rect,
17 const SkSize& scale,
18 SkFilterQuality filter_quality,
19 bool matrix_has_perspective,
20 bool matrix_is_decomposable)
21 : image_(image),
22 src_rect_(src_rect),
23 scale_(scale),
24 filter_quality_(filter_quality),
25 matrix_has_perspective_(matrix_has_perspective),
26 matrix_is_decomposable_(matrix_is_decomposable) {}
27
28 DrawImage::DrawImage(const DrawImage& other)
29 : image_(other.image_),
30 src_rect_(other.src_rect_),
31 scale_(other.scale_),
32 filter_quality_(other.filter_quality_),
33 matrix_has_perspective_(other.matrix_has_perspective_),
34 matrix_is_decomposable_(other.matrix_is_decomposable_) {}
35
36 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/draw_image.h ('k') | cc/tiles/image_decode_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698