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

Unified Diff: cc/paint/paint_image.cc

Issue 2812763002: paint: Introduce PaintImage that wraps SkImage in paint calls. (Closed)
Patch Set: update Created 3 years, 8 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
Index: cc/paint/paint_image.cc
diff --git a/cc/paint/paint_image.cc b/cc/paint/paint_image.cc
new file mode 100644
index 0000000000000000000000000000000000000000..70644ed4c41e773b10152d752dbfd32ac854c7c5
--- /dev/null
+++ b/cc/paint/paint_image.cc
@@ -0,0 +1,17 @@
+// Copyright 2017 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/paint/paint_image.h"
+
+namespace cc {
+
+PaintImage::PaintImage(sk_sp<const SkImage> sk_image,
+ AnimationType animation_type,
+ CompletionState completion_state)
+ : sk_image_(std::move(sk_image)),
+ animation_type_(animation_type),
+ completion_state_(completion_state) {}
+PaintImage::~PaintImage() = default;
+
+} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698