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

Side by Side Diff: gpu/ipc/common/gpu_param_traits_macros.h

Issue 2107783003: Pass initial size and GPU preference via context attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp fix Created 4 years, 5 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/common/gpu_messages.h ('k') | gpu/ipc/service/gpu_channel_unittest.cc » ('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 #ifndef GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ 5 #ifndef GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_
6 #define GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ 6 #define GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_
7 7
8 #include "gpu/command_buffer/common/constants.h" 8 #include "gpu/command_buffer/common/constants.h"
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
10 #include "gpu/command_buffer/common/gpu_memory_allocation.h" 10 #include "gpu/command_buffer/common/gpu_memory_allocation.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) 107 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles)
108 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported) 108 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported)
109 IPC_STRUCT_TRAITS_END() 109 IPC_STRUCT_TRAITS_END()
110 110
111 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) 111 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation)
112 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) 112 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible)
113 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) 113 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible)
114 IPC_STRUCT_TRAITS_END() 114 IPC_STRUCT_TRAITS_END()
115 115
116 IPC_STRUCT_TRAITS_BEGIN(gpu::gles2::ContextCreationAttribHelper) 116 IPC_STRUCT_TRAITS_BEGIN(gpu::gles2::ContextCreationAttribHelper)
117 IPC_STRUCT_TRAITS_MEMBER(offscreen_framebuffer_size)
118 IPC_STRUCT_TRAITS_MEMBER(gpu_preference)
117 IPC_STRUCT_TRAITS_MEMBER(alpha_size) 119 IPC_STRUCT_TRAITS_MEMBER(alpha_size)
118 IPC_STRUCT_TRAITS_MEMBER(blue_size) 120 IPC_STRUCT_TRAITS_MEMBER(blue_size)
119 IPC_STRUCT_TRAITS_MEMBER(green_size) 121 IPC_STRUCT_TRAITS_MEMBER(green_size)
120 IPC_STRUCT_TRAITS_MEMBER(red_size) 122 IPC_STRUCT_TRAITS_MEMBER(red_size)
121 IPC_STRUCT_TRAITS_MEMBER(depth_size) 123 IPC_STRUCT_TRAITS_MEMBER(depth_size)
122 IPC_STRUCT_TRAITS_MEMBER(stencil_size) 124 IPC_STRUCT_TRAITS_MEMBER(stencil_size)
123 IPC_STRUCT_TRAITS_MEMBER(samples) 125 IPC_STRUCT_TRAITS_MEMBER(samples)
124 IPC_STRUCT_TRAITS_MEMBER(sample_buffers) 126 IPC_STRUCT_TRAITS_MEMBER(sample_buffers)
125 IPC_STRUCT_TRAITS_MEMBER(buffer_preserved) 127 IPC_STRUCT_TRAITS_MEMBER(buffer_preserved)
126 IPC_STRUCT_TRAITS_MEMBER(bind_generates_resource) 128 IPC_STRUCT_TRAITS_MEMBER(bind_generates_resource)
127 IPC_STRUCT_TRAITS_MEMBER(fail_if_major_perf_caveat) 129 IPC_STRUCT_TRAITS_MEMBER(fail_if_major_perf_caveat)
128 IPC_STRUCT_TRAITS_MEMBER(lose_context_when_out_of_memory) 130 IPC_STRUCT_TRAITS_MEMBER(lose_context_when_out_of_memory)
129 IPC_STRUCT_TRAITS_MEMBER(context_type) 131 IPC_STRUCT_TRAITS_MEMBER(context_type)
130 IPC_STRUCT_TRAITS_END() 132 IPC_STRUCT_TRAITS_END()
131 133
132 134
133 #endif // GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_ 135 #endif // GPU_IPC_COMMON_GPU_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/gpu_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698