#include "chrome/browser/vr/ui_renderer.h"
#include "base/trace_event/trace_event.h"
#include "chrome/browser/vr/elements/ui_element.h"
#include "chrome/browser/vr/render_info.h"
#include "chrome/browser/vr/ui_element_renderer.h"
#include "chrome/browser/vr/ui_scene.h"
#include "device/vr/gl_bindings.h"
namespace vr {
UiRenderer::UiRenderer(UiScene* scene, UiElementRenderer* ui_element_renderer)
: … { … }
UiRenderer::~UiRenderer() = default;
void UiRenderer::Draw(const RenderInfo& render_info) { … }
void UiRenderer::DrawWebVrOverlayForeground(const RenderInfo& render_info) { … }
void UiRenderer::DrawUiView(const RenderInfo& render_info,
const std::vector<const UiElement*>& elements) { … }
void UiRenderer::DrawElements(const CameraModel& camera_model,
const std::vector<const UiElement*>& elements,
const RenderInfo& render_info) { … }
void UiRenderer::DrawElement(const CameraModel& camera_model,
const UiElement& element) { … }
std::vector<const UiElement*> UiRenderer::GetElementsInDrawOrder(
const std::vector<const UiElement*>& elements) { … }
}