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

Unified Diff: gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 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
Index: gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h
diff --git a/gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h b/gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h
new file mode 100644
index 0000000000000000000000000000000000000000..d8474f27663bf88833a30068a6ee455cd1ea972d
--- /dev/null
+++ b/gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h
@@ -0,0 +1,28 @@
+// Copyright 2016 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 <IOSurface/IOSurface.h>
+
+#include "base/mac/scoped_cftyperef.h"
+#include "gpu/gpu_export.h"
+#include "ui/base/cocoa/remote_layer_api.h"
+#include "ui/gfx/geometry/size.h"
+
+namespace gpu {
+
+struct GPU_EXPORT GpuProcessHostedCALayerTreeParamsMac {
+ GpuProcessHostedCALayerTreeParamsMac();
+ ~GpuProcessHostedCALayerTreeParamsMac();
+
+ int surface_handle = 0;
+ CAContextID ca_context_id = 0;
+ bool fullscreen_low_power_ca_context_valid = false;
+ CAContextID fullscreen_low_power_ca_context_id = 0;
+ base::ScopedCFTypeRef<IOSurfaceRef> io_surface;
+ gfx::Size pixel_size;
+ float scale_factor = 1;
+};
+
+} // namespace gpu
+
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698