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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/draw_image.cc
diff --git a/cc/playback/draw_image.cc b/cc/playback/draw_image.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a9c965a614baa854ced8d867f926c9c33d383e28
--- /dev/null
+++ b/cc/playback/draw_image.cc
@@ -0,0 +1,36 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/playback/draw_image.h"
+
+namespace cc {
+
+DrawImage::DrawImage()
+ : image_(nullptr),
+ src_rect_(SkIRect::MakeXYWH(0, 0, 0, 0)),
+ scale_(SkSize::Make(1.f, 1.f)),
+ filter_quality_(kNone_SkFilterQuality) {}
+
+DrawImage::DrawImage(const SkImage* image,
+ const SkIRect& src_rect,
+ const SkSize& scale,
+ SkFilterQuality filter_quality,
+ bool matrix_has_perspective,
+ bool matrix_is_decomposable)
+ : image_(image),
+ src_rect_(src_rect),
+ scale_(scale),
+ filter_quality_(filter_quality),
+ matrix_has_perspective_(matrix_has_perspective),
+ matrix_is_decomposable_(matrix_is_decomposable) {}
+
+DrawImage::DrawImage(const DrawImage& other)
+ : image_(other.image_),
+ src_rect_(other.src_rect_),
+ scale_(other.scale_),
+ filter_quality_(other.filter_quality_),
+ matrix_has_perspective_(other.matrix_has_perspective_),
+ matrix_is_decomposable_(other.matrix_is_decomposable_) {}
+
+} // namespace cc
« 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