| Index: content/common/gpu/accelerated_surface_buffers_swapped_params_mac.h
|
| diff --git a/content/common/gpu/accelerated_surface_buffers_swapped_params_mac.h b/content/common/gpu/accelerated_surface_buffers_swapped_params_mac.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d0f66b000f6097705be4318ee72bcfffba82007d
|
| --- /dev/null
|
| +++ b/content/common/gpu/accelerated_surface_buffers_swapped_params_mac.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.
|
| +
|
| +#ifndef CONTENT_COMMON_GPU_ACCELERATED_SURFACE_BUFFERS_SWAPPED_PARAMS_MAC_H_
|
| +#define CONTENT_COMMON_GPU_ACCELERATED_SURFACE_BUFFERS_SWAPPED_PARAMS_MAC_H_
|
| +
|
| +#include "ui/base/cocoa/remote_layer_api.h"
|
| +#include "ui/events/latency_info.h"
|
| +#include "ui/gfx/mac/io_surface.h"
|
| +
|
| +namespace content {
|
| +
|
| +struct AcceleratedSurfaceBuffersSwappedParams {
|
| + AcceleratedSurfaceBuffersSwappedParams();
|
| + ~AcceleratedSurfaceBuffersSwappedParams();
|
| +
|
| + int32_t surface_id;
|
| + CAContextID ca_context_id;
|
| + gfx::ScopedRefCountedIOSurfaceMachPort io_surface;
|
| + gfx::Size size;
|
| + float scale_factor;
|
| + std::vector<ui::LatencyInfo> latency_info;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_COMMON_GPU_ACCELERATED_SURFACE_BUFFERS_SWAPPED_PARAMS_MAC_H_
|
|
|