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

Unified Diff: ui/gfx/mac/io_surface_manager.h

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
« no previous file with comments | « ui/gfx/mac/io_surface.cc ('k') | ui/gfx/mac/io_surface_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mac/io_surface_manager.h
diff --git a/ui/gfx/mac/io_surface_manager.h b/ui/gfx/mac/io_surface_manager.h
deleted file mode 100644
index 130214c3684ccce7976f7f319bf115a3a639bd85..0000000000000000000000000000000000000000
--- a/ui/gfx/mac/io_surface_manager.h
+++ /dev/null
@@ -1,50 +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.
-
-#ifndef CONTENT_COMMON_MAC_IO_SURFACE_MANAGER_H_
-#define CONTENT_COMMON_MAC_IO_SURFACE_MANAGER_H_
-
-#include <IOSurface/IOSurface.h>
-
-#include "ui/gfx/buffer_types.h"
-#include "ui/gfx/generic_shared_memory_id.h"
-#include "ui/gfx/geometry/size.h"
-#include "ui/gfx/gfx_export.h"
-
-namespace gfx {
-
-using IOSurfaceId = GenericSharedMemoryId;
-
-// This interface provides a mechanism for different processes to securely
-// share IOSurfaces. A process can register an IOSurface for use in another
-// process and the client ID provided with registration determines the process
-// that can acquire a reference to the IOSurface.
-class GFX_EXPORT IOSurfaceManager {
- public:
- static IOSurfaceManager* GetInstance();
- static void SetInstance(IOSurfaceManager* instance);
-
- // Helper function to create an IOSurface with a specified size and format.
- static IOSurfaceRef CreateIOSurface(const Size& size, BufferFormat format);
-
- // Register an IO surface for use in another process.
- virtual bool RegisterIOSurface(IOSurfaceId io_surface_id,
- int client_id,
- IOSurfaceRef io_surface) = 0;
-
- // Unregister an IO surface previously registered for use in another
- // process.
- virtual void UnregisterIOSurface(IOSurfaceId io_surface_id,
- int client_id) = 0;
-
- // Acquire IO surface reference for a registered IO surface.
- virtual IOSurfaceRef AcquireIOSurface(IOSurfaceId io_surface_id) = 0;
-
- protected:
- virtual ~IOSurfaceManager() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_MAC_IO_SURFACE_MANAGER_H_
« no previous file with comments | « ui/gfx/mac/io_surface.cc ('k') | ui/gfx/mac/io_surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698