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

Unified Diff: app/surface/transport_dib_mac.cc

Issue 3020008: Mac: Make TransportDIB::Create() work. (Closed)
Patch Set: Created 10 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/surface/transport_dib_mac.cc
diff --git a/app/surface/transport_dib_mac.cc b/app/surface/transport_dib_mac.cc
index f17835ff2fbc6e203cdf6fd7c8b979a74a0f2549..97d18d762d109afa9c9a8dea346634e28c48b544 100644
--- a/app/surface/transport_dib_mac.cc
+++ b/app/surface/transport_dib_mac.cc
@@ -34,6 +34,11 @@ TransportDIB* TransportDIB::Create(size_t size, uint32 sequence_num) {
return NULL;
}
+ if (!dib->shared_memory_.Map(size)) {
+ delete dib;
+ return NULL;
+ }
+
dib->size_ = size;
return dib;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698