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

Unified Diff: cc/resources/texture_mailbox.cc

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/resources/texture_mailbox.h ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/texture_mailbox.cc
diff --git a/cc/resources/texture_mailbox.cc b/cc/resources/texture_mailbox.cc
index 07cbec0415284de8b197becd926eb167fc28d1bd..9bf242e1d7c897e44b4c0f904d0ec54b29cf87cc 100644
--- a/cc/resources/texture_mailbox.cc
+++ b/cc/resources/texture_mailbox.cc
@@ -9,25 +9,28 @@
namespace cc {
-TextureMailbox::TextureMailbox() : shared_memory_(NULL) {}
+TextureMailbox::TextureMailbox() : shared_bitmap_(NULL) {
+}
TextureMailbox::TextureMailbox(const gpu::MailboxHolder& mailbox_holder)
: mailbox_holder_(mailbox_holder),
- shared_memory_(NULL),
+ shared_bitmap_(NULL),
allow_overlay_(false),
- nearest_neighbor_(false) {}
+ nearest_neighbor_(false) {
+}
TextureMailbox::TextureMailbox(const gpu::Mailbox& mailbox,
uint32 target,
uint32 sync_point)
: mailbox_holder_(mailbox, target, sync_point),
- shared_memory_(NULL),
+ shared_bitmap_(NULL),
allow_overlay_(false),
- nearest_neighbor_(false) {}
+ nearest_neighbor_(false) {
+}
-TextureMailbox::TextureMailbox(base::SharedMemory* shared_memory,
+TextureMailbox::TextureMailbox(SharedBitmap* shared_bitmap,
const gfx::Size& size)
- : shared_memory_(shared_memory),
+ : shared_bitmap_(shared_bitmap),
shared_memory_size_(size),
allow_overlay_(false),
nearest_neighbor_(false) {
@@ -44,8 +47,7 @@ bool TextureMailbox::Equals(const TextureMailbox& other) const {
other.mailbox_holder_.mailbox.name,
sizeof(mailbox_holder_.mailbox.name));
} else if (other.IsSharedMemory()) {
- return IsSharedMemory() &&
- shared_memory_->handle() == other.shared_memory_->handle();
+ return IsSharedMemory() && (shared_bitmap_ == other.shared_bitmap_);
}
DCHECK(!other.IsValid());
« no previous file with comments | « cc/resources/texture_mailbox.h ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698