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

Unified Diff: content/child/child_io_surface_manager_mac.cc

Issue 1463853002: Mac: Move IOSurface token initialization earlier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 5 years, 1 month 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 | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_io_surface_manager_mac.cc
diff --git a/content/child/child_io_surface_manager_mac.cc b/content/child/child_io_surface_manager_mac.cc
index 7015d9c4de50e7fa66fe4357dc64859f8bfe3e14..ebad42ad5b42c1d54322c2f59d5f340235848837 100644
--- a/content/child/child_io_surface_manager_mac.cc
+++ b/content/child/child_io_surface_manager_mac.cc
@@ -20,7 +20,7 @@ bool ChildIOSurfaceManager::RegisterIOSurface(gfx::IOSurfaceId io_surface_id,
int client_id,
IOSurfaceRef io_surface) {
DCHECK(service_port_.is_valid());
- DCHECK(!token_.IsZero());
+ CHECK(!token_.IsZero());
mach_port_t reply_port;
kern_return_t kr = mach_port_allocate(mach_task_self(),
@@ -71,7 +71,7 @@ bool ChildIOSurfaceManager::RegisterIOSurface(gfx::IOSurfaceId io_surface_id,
void ChildIOSurfaceManager::UnregisterIOSurface(gfx::IOSurfaceId io_surface_id,
int client_id) {
DCHECK(service_port_.is_valid());
- DCHECK(!token_.IsZero());
+ CHECK(!token_.IsZero());
IOSurfaceManagerHostMsg_UnregisterIOSurface request = {{0}};
request.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0);
@@ -94,7 +94,7 @@ void ChildIOSurfaceManager::UnregisterIOSurface(gfx::IOSurfaceId io_surface_id,
IOSurfaceRef ChildIOSurfaceManager::AcquireIOSurface(
gfx::IOSurfaceId io_surface_id) {
DCHECK(service_port_.is_valid());
- DCHECK(!token_.IsZero());
+ CHECK(!token_.IsZero());
mach_port_t reply_port;
kern_return_t kr = mach_port_allocate(mach_task_self(),
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698