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

Unified Diff: ui/surface/transport_dib_posix.cc

Issue 1145893009: Change transport dib API to not make copies of SharedMemoryHandle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shared_memory_pepper_rename
Patch Set: Comments from jbauman. Created 5 years, 7 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 | « ui/surface/transport_dib.cc ('k') | ui/surface/transport_dib_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/surface/transport_dib_posix.cc
diff --git a/ui/surface/transport_dib_posix.cc b/ui/surface/transport_dib_posix.cc
index e26fdb2d7c6e4a93c6932e071616ce5eae68f5a4..74957d2b845b230dd2df0372fb27fcb352cbe8c4 100644
--- a/ui/surface/transport_dib_posix.cc
+++ b/ui/surface/transport_dib_posix.cc
@@ -72,7 +72,7 @@ skia::PlatformCanvas* TransportDIB::GetPlatformCanvas(int w, int h) {
}
bool TransportDIB::Map() {
- if (!is_valid_handle(handle()))
+ if (!is_valid_handle(shared_memory_.handle()))
return false;
#if defined(OS_ANDROID)
if (!shared_memory_.Map(0))
@@ -98,12 +98,8 @@ void* TransportDIB::memory() const {
TransportDIB::Id TransportDIB::id() const {
#if defined(OS_ANDROID)
- return handle();
+ return shared_memory_.handle();
#else
return shared_memory_.id();
#endif
}
-
-TransportDIB::Handle TransportDIB::handle() const {
- return shared_memory_.handle();
-}
« no previous file with comments | « ui/surface/transport_dib.cc ('k') | ui/surface/transport_dib_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698