blob: 9c4d60e8101aadd35790aac14d792f11080e0ffe [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.
#ifndef CHROME_BROWSER_VR_ELEMENTS_EXIT_WARNING_TEXTURE_H_
#define CHROME_BROWSER_VR_ELEMENTS_EXIT_WARNING_TEXTURE_H_
#include "base/macros.h"
#include "chrome/browser/vr/elements/ui_texture.h"
namespace vr {
class ExitWarningTexture : public UiTexture {
public:
ExitWarningTexture();
~ExitWarningTexture() override;
gfx::Size GetPreferredTextureSize(int width) const override;
gfx::SizeF GetDrawnSize() const override;
private:
void Draw(SkCanvas* sk_canvas, const gfx::Size& texture_size) override;
gfx::SizeF size_;
DISALLOW_COPY_AND_ASSIGN(ExitWarningTexture);
};
} // namespace vr
#endif // CHROME_BROWSER_VR_ELEMENTS_EXIT_WARNING_TEXTURE_H_