blob: acc2f787b9e9c7c25ff45fea151ec7fe1ef71de9 [file] [log] [blame]
// Copyright 2018 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 GPU_COMMAND_BUFFER_COMMON_SWAP_BUFFERS_FLAGS_H_
#define GPU_COMMAND_BUFFER_COMMON_SWAP_BUFFERS_FLAGS_H_
namespace gpu {
// Flags for calling glSwapBuffers, glPostiSubBufferCHROMIUM,
// glSwapBuffersWithBoundsCHROMIUM and glCommitOverlayPlanesCHROMIUM with
// Chromium GLES2 command buffer.
class SwapBuffersFlags {
public:
enum : uint32_t {
kPresentationFeedback = 1 << 0, // Request presentation.
kVSyncParams = 1 << 1, // Request VSYNC parameters update.
};
};
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_COMMON_SWAP_BUFFERS_FLAGS_H_