OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 BLIMP_CLIENT_ANDROID_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ |
| 6 #define BLIMP_CLIENT_ANDROID_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" |
| 11 #include "cc/output/output_surface.h" |
| 12 |
| 13 namespace blimp { |
| 14 |
| 15 class BlimpOutputSurface : public cc::OutputSurface { |
| 16 public: |
| 17 BlimpOutputSurface( |
| 18 const scoped_refptr<cc::ContextProvider>& context_provider); |
| 19 ~BlimpOutputSurface() override; |
| 20 |
| 21 // OutputSurface Implementation ---------------------------------------------- |
| 22 void SwapBuffers(cc::CompositorFrame* frame) override; |
| 23 |
| 24 private: |
| 25 base::WeakPtrFactory<BlimpOutputSurface> weak_factory_; |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(BlimpOutputSurface); |
| 28 }; |
| 29 |
| 30 } // namespace blimp |
| 31 |
| 32 #endif // BLIMP_CLIENT_ANDROID_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ |
OLD | NEW |