blob: 38700cf331f56a47fe6a2648541bfbc73c11a486 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2014 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 UI_OZONE_DEMO_RENDERER_BASE_H_
#define UI_OZONE_DEMO_RENDERER_BASE_H_
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/ozone/demo/renderer.h"
namespace ui {
class RendererBase : public Renderer {
public:
RendererBase(gfx::AcceleratedWidget widget, const gfx::Size& size);
~RendererBase() override;
protected:
float NextFraction();
gfx::AcceleratedWidget widget_;
gfx::Size size_;
int iteration_;
};
} // namespace ui
#endif // UI_OZONE_DEMO_RENDERER_BASE_H_
|