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

Unified Diff: cc/texture_mailbox.cc

Issue 12612005: Revert 186627 (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_mailbox.h ('k') | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_mailbox.cc
===================================================================
--- cc/texture_mailbox.cc (revision 186756)
+++ cc/texture_mailbox.cc (working copy)
@@ -12,6 +12,18 @@
}
TextureMailbox::TextureMailbox(
+ const std::string& mailbox_name,
+ const ReleaseCallback& mailbox_callback)
+ : callback_(mailbox_callback),
+ sync_point_(0) {
+ DCHECK(mailbox_name.empty() == mailbox_callback.is_null());
+ if (!mailbox_name.empty()) {
+ CHECK(mailbox_name.size() == sizeof(name_.name));
+ name_.SetName(reinterpret_cast<const int8*>(mailbox_name.data()));
+ }
+}
+
+TextureMailbox::TextureMailbox(
const gpu::Mailbox& mailbox_name,
const ReleaseCallback& mailbox_callback)
: callback_(mailbox_callback),
« no previous file with comments | « cc/texture_mailbox.h ('k') | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698