// 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_SOFTWARE_RENDERER_H_ #define UI_OZONE_DEMO_SOFTWARE_RENDERER_H_ #include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "ui/ozone/demo/renderer_base.h" namespace ui { class SurfaceOzoneCanvas; class SoftwareRenderer : public RendererBase { public: SoftwareRenderer(gfx::AcceleratedWidget widget, const gfx::Size& size); ~SoftwareRenderer() override; // Renderer: bool Initialize() override; void RenderFrame() override; private: scoped_ptr software_surface_; DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); }; } // namespace ui #endif // UI_OZONE_DEMO_SOFTWARE_RENDERER_H_