blob: 1dbf9a41cb3db25ef94d55b95b4271ce59eb3670 [file] [log] [blame]
// Copyright 2017 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.
#include "chrome/browser/vr/elements/draw_phase.h"
#include "base/stl_util.h"
namespace vr {
namespace {
static const char* g_draw_phase_strings[] = {
"kPhaseNone", "kPhaseBackground", "kPhaseBackplanes",
"kPhaseForeground", "kPhaseOverlayForeground",
};
static_assert(
kNumDrawPhases + 1 == base::size(g_draw_phase_strings),
"Mismatch between the DrawPhase enum and the corresponding strings");
} // namespace
std::string DrawPhaseToString(DrawPhase phase) {
return g_draw_phase_strings[phase];
}
} // namespace vr