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

Unified Diff: cc/output/copy_output_result.cc

Issue 1533773002: Delete CC. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2e
Patch Set: rebase Created 5 years 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') | cc/output/delegated_frame_data.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
deleted file mode 100644
index 8dee046ce84dacb17927f1fa659df9da236e9e65..0000000000000000000000000000000000000000
--- a/cc/output/copy_output_result.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2013 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/output/copy_output_result.h"
-
-#include "base/logging.h"
-#include "cc/resources/texture_mailbox.h"
-#include "third_party/skia/include/core/SkBitmap.h"
-
-namespace cc {
-
-CopyOutputResult::CopyOutputResult() {}
-
-CopyOutputResult::CopyOutputResult(scoped_ptr<SkBitmap> bitmap)
- : size_(bitmap->width(), bitmap->height()),
- bitmap_(bitmap.Pass()) {
- DCHECK(bitmap_);
-}
-
-CopyOutputResult::CopyOutputResult(
- const gfx::Size& size,
- const TextureMailbox& texture_mailbox,
- scoped_ptr<SingleReleaseCallback> release_callback)
- : size_(size),
- texture_mailbox_(texture_mailbox),
- release_callback_(release_callback.Pass()) {
- DCHECK(texture_mailbox_.IsTexture());
-}
-
-CopyOutputResult::~CopyOutputResult() {
- if (release_callback_)
- release_callback_->Run(0, false);
-}
-
-scoped_ptr<SkBitmap> CopyOutputResult::TakeBitmap() {
- return bitmap_.Pass();
-}
-
-void CopyOutputResult::TakeTexture(
- TextureMailbox* texture_mailbox,
- scoped_ptr<SingleReleaseCallback>* release_callback) {
- *texture_mailbox = texture_mailbox_;
- *release_callback = release_callback_.Pass();
-
- texture_mailbox_ = TextureMailbox();
-}
-
-} // namespace cc
« no previous file with comments | « cc/output/copy_output_result.h ('k') | cc/output/delegated_frame_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698