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

Unified Diff: content/browser/in_process_io_surface_manager_mac.cc

Issue 1532813002: Replace IOSurfaceManager by directly passing IOSurface Mach ports over Chrome IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 12 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
Index: content/browser/in_process_io_surface_manager_mac.cc
diff --git a/content/browser/in_process_io_surface_manager_mac.cc b/content/browser/in_process_io_surface_manager_mac.cc
deleted file mode 100644
index 70f18a741341f51b9b30a3ab93efafa4ced51659..0000000000000000000000000000000000000000
--- a/content/browser/in_process_io_surface_manager_mac.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/in_process_io_surface_manager_mac.h"
-
-#include "base/logging.h"
-
-namespace content {
-
-// static
-InProcessIOSurfaceManager* InProcessIOSurfaceManager::GetInstance() {
- return base::Singleton<
- InProcessIOSurfaceManager,
- base::LeakySingletonTraits<InProcessIOSurfaceManager>>::get();
-}
-
-bool InProcessIOSurfaceManager::RegisterIOSurface(
- gfx::IOSurfaceId io_surface_id,
- int client_id,
- IOSurfaceRef io_surface) {
- base::AutoLock lock(lock_);
-
- DCHECK(io_surfaces_.find(io_surface_id) == io_surfaces_.end());
- io_surfaces_.add(io_surface_id,
- make_scoped_ptr(new base::mac::ScopedMachSendRight(
- IOSurfaceCreateMachPort(io_surface))));
- return true;
-}
-
-void InProcessIOSurfaceManager::UnregisterIOSurface(
- gfx::IOSurfaceId io_surface_id,
- int client_id) {
- base::AutoLock lock(lock_);
-
- DCHECK(io_surfaces_.find(io_surface_id) != io_surfaces_.end());
- io_surfaces_.erase(io_surface_id);
-}
-
-IOSurfaceRef InProcessIOSurfaceManager::AcquireIOSurface(
- gfx::IOSurfaceId io_surface_id) {
- base::AutoLock lock(lock_);
-
- DCHECK(io_surfaces_.find(io_surface_id) != io_surfaces_.end());
- return IOSurfaceLookupFromMachPort(io_surfaces_.get(io_surface_id)->get());
-}
-
-InProcessIOSurfaceManager::InProcessIOSurfaceManager() {
-}
-
-InProcessIOSurfaceManager::~InProcessIOSurfaceManager() {
-}
-
-} // namespace content
« no previous file with comments | « content/browser/in_process_io_surface_manager_mac.h ('k') | content/browser/renderer_host/render_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698