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

Side by Side Diff: gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h

Issue 2365583004: Mac: Clean up plumbing of accelerated widgets (Closed)
Patch Set: make_scoped_refptr Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | gpu/ipc/common/gpu_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <IOSurface/IOSurface.h> 5 #include <IOSurface/IOSurface.h>
6 6
7 #include "base/mac/scoped_cftyperef.h" 7 #include "base/mac/scoped_cftyperef.h"
8 #include "gpu/command_buffer/common/texture_in_use_response.h" 8 #include "gpu/command_buffer/common/texture_in_use_response.h"
9 #include "gpu/gpu_export.h" 9 #include "gpu/gpu_export.h"
10 #include "ui/base/cocoa/remote_layer_api.h" 10 #include "ui/base/cocoa/remote_layer_api.h"
11 #include "ui/gfx/geometry/size.h" 11 #include "ui/gfx/geometry/size.h"
12 12
13 namespace gpu { 13 namespace gpu {
14 14
15 struct GPU_EXPORT GpuProcessHostedCALayerTreeParamsMac { 15 struct GPU_EXPORT GpuProcessHostedCALayerTreeParamsMac {
16 GpuProcessHostedCALayerTreeParamsMac(); 16 GpuProcessHostedCALayerTreeParamsMac();
17 ~GpuProcessHostedCALayerTreeParamsMac(); 17 ~GpuProcessHostedCALayerTreeParamsMac();
18 18
19 int surface_handle = 0;
20 CAContextID ca_context_id = 0; 19 CAContextID ca_context_id = 0;
21 bool fullscreen_low_power_ca_context_valid = false; 20 bool fullscreen_low_power_ca_context_valid = false;
22 CAContextID fullscreen_low_power_ca_context_id = 0; 21 CAContextID fullscreen_low_power_ca_context_id = 0;
23 base::ScopedCFTypeRef<IOSurfaceRef> io_surface; 22 base::ScopedCFTypeRef<IOSurfaceRef> io_surface;
24 gfx::Size pixel_size; 23 gfx::Size pixel_size;
25 float scale_factor = 1; 24 float scale_factor = 1;
26 TextureInUseResponses responses; 25 TextureInUseResponses responses;
27 }; 26 };
28 27
29 } // namespace gpu 28 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.cc ('k') | gpu/ipc/common/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698