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

Unified Diff: cc/output/filter_operations.cc

Issue 2047573005: Implement cc::FilterOperations StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb cc::FilterOperations to mus Created 4 years, 6 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/output/filter_operations.h ('k') | components/mus/public/cpp/surfaces/surfaces_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/filter_operations.cc
diff --git a/cc/output/filter_operations.cc b/cc/output/filter_operations.cc
index 00ec79f52c24c0d0576b94afff50cf4015b6d8d9..c4871f4827827744488d3fee0eff1c3f2649e85b 100644
--- a/cc/output/filter_operations.cc
+++ b/cc/output/filter_operations.cc
@@ -21,6 +21,9 @@ FilterOperations::FilterOperations() {}
FilterOperations::FilterOperations(const FilterOperations& other)
: operations_(other.operations_) {}
+FilterOperations::FilterOperations(std::vector<FilterOperation>&& operations)
+ : operations_(std::move(operations)) {}
+
FilterOperations::~FilterOperations() {}
FilterOperations& FilterOperations::operator=(const FilterOperations& other) {
@@ -28,6 +31,11 @@ FilterOperations& FilterOperations::operator=(const FilterOperations& other) {
return *this;
}
+FilterOperations& FilterOperations::operator=(FilterOperations&& other) {
+ operations_ = std::move(other.operations_);
+ return *this;
+}
+
bool FilterOperations::operator==(const FilterOperations& other) const {
if (other.size() != size())
return false;
« no previous file with comments | « cc/output/filter_operations.h ('k') | components/mus/public/cpp/surfaces/surfaces_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698