Remove obsolete entries from .gitignore.
[chromium-blink-merge.git] / components / mus / surfaces / surfaces_output_surface.h
blob3bd62df0691fc179fb9202c900a63b57bc5a76e4
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 COMPONENTS_MUS_SURFACES_SURFACES_OUTPUT_SURFACE_H_
6 #define COMPONENTS_MUS_SURFACES_SURFACES_OUTPUT_SURFACE_H_
8 #include "cc/output/output_surface.h"
10 namespace mus {
12 // An OutputSurface implementation that directly draws and
13 // swaps to an actual GL surface.
14 class DirectOutputSurface : public cc::OutputSurface {
15 public:
16 explicit DirectOutputSurface(
17 const scoped_refptr<cc::ContextProvider>& context_provider);
18 ~DirectOutputSurface() override;
20 // cc::OutputSurface implementation
21 void SwapBuffers(cc::CompositorFrame* frame) override;
23 private:
24 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
27 } // namespace mus
29 #endif // COMPONENTS_MUS_SURFACES_SURFACES_OUTPUT_SURFACE_H_