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

Unified Diff: cc/output/copy_output_result.cc

Issue 2659703002: Implemented StructTraits for cc::CopyOutputResult (Closed)
Patch Set: c Created 3 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/output/copy_output_result.h ('k') | gpu/ipc/common/mailbox_holder_struct_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/copy_output_result.cc
diff --git a/cc/output/copy_output_result.cc b/cc/output/copy_output_result.cc
index 3a349f27fb8d3aeffb17726f9a7ad46035b2c4d8..6d09a389f9b1d5ca68aaf1f7c33b650027ccac35 100644
--- a/cc/output/copy_output_result.cc
+++ b/cc/output/copy_output_result.cc
@@ -6,7 +6,6 @@
#include "base/logging.h"
#include "cc/resources/texture_mailbox.h"
-#include "third_party/skia/include/core/SkBitmap.h"
namespace cc {
@@ -27,11 +26,16 @@ CopyOutputResult::CopyOutputResult(
DCHECK(texture_mailbox_.IsTexture());
}
+CopyOutputResult::CopyOutputResult(CopyOutputResult&& other) = default;
+
CopyOutputResult::~CopyOutputResult() {
if (release_callback_)
release_callback_->Run(gpu::SyncToken(), false);
}
+CopyOutputResult& CopyOutputResult::operator=(CopyOutputResult&& other) =
+ default;
+
std::unique_ptr<SkBitmap> CopyOutputResult::TakeBitmap() {
return std::move(bitmap_);
}
« no previous file with comments | « cc/output/copy_output_result.h ('k') | gpu/ipc/common/mailbox_holder_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698