| OLD | NEW |
| 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 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
| 6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "gpu/command_buffer/common/sync_token.h" | 10 #include "gpu/command_buffer/common/sync_token.h" |
| 11 #include "gpu/config/gpu_feature_info.h" | 11 #include "gpu/config/gpu_feature_info.h" |
| 12 #include "gpu/config/gpu_info.h" | 12 #include "gpu/config/gpu_info.h" |
| 13 #include "gpu/ipc/common/surface_handle.h" | 13 #include "gpu/ipc/common/surface_handle.h" |
| 14 #include "ipc/ipc_channel_handle.h" | 14 #include "ipc/ipc_channel_handle.h" |
| 15 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
| 16 #include "ipc/ipc_message_start.h" | 16 #include "ipc/ipc_message_start.h" |
| 17 #include "ui/gfx/gpu_memory_buffer.h" | 17 #include "ui/gfx/gpu_memory_buffer.h" |
| 18 #include "ui/gfx/ipc/gfx_param_traits.h" | 18 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 19 | 19 |
| 20 #undef IPC_MESSAGE_EXPORT | 20 #undef IPC_MESSAGE_EXPORT |
| 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 22 | 22 |
| 23 #define IPC_MESSAGE_START GpuMsgStart | 23 #define IPC_MESSAGE_START GpuMsgStart |
| 24 | 24 |
| 25 //------------------------------------------------------------------------------ | 25 //------------------------------------------------------------------------------ |
| 26 // GPU Messages | |
| 27 // These are messages from the browser to the GPU process. | |
| 28 | |
| 29 // Tells the GPU process that the browser has seen a GPU switch. | |
| 30 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) | |
| 31 | |
| 32 //------------------------------------------------------------------------------ | |
| 33 // GPU Host Messages | 26 // GPU Host Messages |
| 34 // These are messages to the browser. | 27 // These are messages to the browser. |
| 35 | 28 |
| 36 // Sent by the GPU process to indicate that a fields trial has been activated. | 29 // Sent by the GPU process to indicate that a fields trial has been activated. |
| 37 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) | 30 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) |
| OLD | NEW |