1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_OZONE_DEMO_SOFTWARE_RENDERER_H_
6 #define UI_OZONE_DEMO_SOFTWARE_RENDERER_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/ozone/demo/renderer_base.h"
14 class SurfaceOzoneCanvas
;
16 class SoftwareRenderer
: public RendererBase
{
18 SoftwareRenderer(gfx::AcceleratedWidget widget
, const gfx::Size
& size
);
19 ~SoftwareRenderer() override
;
22 bool Initialize() override
;
23 void RenderFrame() override
;
26 scoped_ptr
<SurfaceOzoneCanvas
> software_surface_
;
28 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer
);
33 #endif // UI_OZONE_DEMO_SOFTWARE_RENDERER_H_