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

Unified Diff: cc/texture_mailbox.h

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/texture_layer.h ('k') | cc/texture_mailbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_mailbox.h
diff --git a/cc/texture_mailbox.h b/cc/texture_mailbox.h
deleted file mode 100644
index 2292c97ffb06e7235fa49befec79920dbd3f691e..0000000000000000000000000000000000000000
--- a/cc/texture_mailbox.h
+++ /dev/null
@@ -1,50 +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.
-
-#ifndef CC_TEXTURE_MAILBOX_H_
-#define CC_TEXTURE_MAILBOX_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "cc/base/cc_export.h"
-#include "gpu/command_buffer/common/mailbox.h"
-
-namespace cc {
-
-class CC_EXPORT TextureMailbox {
- public:
- typedef base::Callback<void(unsigned)> ReleaseCallback;
- TextureMailbox();
- TextureMailbox(const std::string& mailbox_name,
- const ReleaseCallback& callback);
- TextureMailbox(const gpu::Mailbox& mailbox_name,
- const ReleaseCallback& callback);
- TextureMailbox(const gpu::Mailbox& mailbox_name,
- const ReleaseCallback& callback,
- unsigned sync_point);
-
- ~TextureMailbox();
-
- const ReleaseCallback& callback() const { return callback_; }
- const int8* data() const { return name_.name; }
- bool Equals(const gpu::Mailbox&) const;
- bool Equals(const TextureMailbox&) const;
- bool IsEmpty() const;
- const gpu::Mailbox& name() const { return name_; }
- void ResetSyncPoint() { sync_point_ = 0; }
- void RunReleaseCallback(unsigned sync_point) const;
- void SetName(const gpu::Mailbox&);
- unsigned sync_point() const { return sync_point_; }
-
- private:
- gpu::Mailbox name_;
- ReleaseCallback callback_;
- unsigned sync_point_;
-};
-
-} // namespace cc
-
-#endif // CC_TEXTURE_MAILBOX_H_
« no previous file with comments | « cc/texture_layer.h ('k') | cc/texture_mailbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698