OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef MOJO_CC_DIRECT_OUTPUT_SURFACE_H_ | |
6 #define MOJO_CC_DIRECT_OUTPUT_SURFACE_H_ | |
7 | |
8 #include "cc/output/output_surface.h" | |
9 | |
10 namespace mojo { | |
11 | |
12 class DirectOutputSurface : public cc::OutputSurface { | |
jamesr
2014/10/10 06:36:40
class comment wouldn't hurt
no sievers
2014/10/10 18:58:16
Done.
| |
13 public: | |
14 explicit DirectOutputSurface( | |
15 const scoped_refptr<cc::ContextProvider>& context_provider); | |
16 virtual ~DirectOutputSurface() override; | |
17 | |
18 // cc::OutputSurface implementation | |
19 virtual void SwapBuffers(cc::CompositorFrame* frame) override; | |
20 | |
21 private: | |
22 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; | |
23 }; | |
24 | |
25 } // namespace mojo | |
26 | |
27 #endif // MOJO_CC_DIRECT_OUTPUT_SURFACE_H_ | |
OLD | NEW |