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

Unified Diff: ui/accelerated_widget_mac/surface_handle_types.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
Index: ui/accelerated_widget_mac/surface_handle_types.h
diff --git a/ui/accelerated_widget_mac/surface_handle_types.h b/ui/accelerated_widget_mac/surface_handle_types.h
deleted file mode 100644
index 23723e800beef79033c855f2a37ac22b5232e15a..0000000000000000000000000000000000000000
--- a/ui/accelerated_widget_mac/surface_handle_types.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 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 UI_ACCELERATED_WIDGET_MAC_SURFACE_HANDLE_TYPES_H_
-#define UI_ACCELERATED_WIDGET_MAC_SURFACE_HANDLE_TYPES_H_
-
-#include <IOSurface/IOSurface.h>
-#include <OpenGL/CGLIOSurface.h>
-#include <stdint.h>
-
-#include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h"
-#include "ui/base/cocoa/remote_layer_api.h"
-
-namespace ui {
-
-// The surface handle passed between the GPU and browser process may refer to
-// an IOSurface or a CAContext. These helper functions must be used to identify
-// and translate between the types.
-enum SurfaceHandleType {
- kSurfaceHandleTypeInvalid,
- kSurfaceHandleTypeIOSurface,
- kSurfaceHandleTypeCAContext,
-};
-
-ACCELERATED_WIDGET_MAC_EXPORT
-SurfaceHandleType GetSurfaceHandleType(uint64_t surface_handle);
-
-ACCELERATED_WIDGET_MAC_EXPORT
-CAContextID CAContextIDFromSurfaceHandle(uint64_t surface_handle);
-
-ACCELERATED_WIDGET_MAC_EXPORT
-IOSurfaceID IOSurfaceIDFromSurfaceHandle(uint64_t surface_handle);
-
-ACCELERATED_WIDGET_MAC_EXPORT
-uint64_t SurfaceHandleFromIOSurfaceID(IOSurfaceID io_surface_id);
-
-ACCELERATED_WIDGET_MAC_EXPORT
-uint64_t SurfaceHandleFromCAContextID(CAContextID ca_context_id);
-
-} // namespace ui
-
-#endif // UI_ACCELERATED_WIDGET_MAC_SURFACE_HANDLE_TYPES_H_
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.gyp ('k') | ui/accelerated_widget_mac/surface_handle_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698