| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ | 5 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ |
| 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ | 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "cc/output/output_surface.h" | 12 #include "cc/output/output_surface.h" |
| 13 | 13 |
| 14 namespace blimp { | 14 namespace blimp { |
| 15 namespace client { | 15 namespace client { |
| 16 | 16 |
| 17 // Minimal implementation of cc::OutputSurface. | 17 // Minimal implementation of cc::OutputSurface. |
| 18 class BlimpOutputSurface : public cc::OutputSurface { | 18 class BlimpOutputSurface : public cc::OutputSurface { |
| 19 public: | 19 public: |
| 20 explicit BlimpOutputSurface( | 20 explicit BlimpOutputSurface( |
| 21 const scoped_refptr<cc::ContextProvider>& context_provider); | 21 scoped_refptr<cc::ContextProvider> context_provider); |
| 22 ~BlimpOutputSurface() override; | 22 ~BlimpOutputSurface() override; |
| 23 | 23 |
| 24 // OutputSurface implementation. | 24 // OutputSurface implementation. |
| 25 void SwapBuffers(cc::CompositorFrame* frame) override; | 25 void SwapBuffers(cc::CompositorFrame* frame) override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(BlimpOutputSurface); | 28 DISALLOW_COPY_AND_ASSIGN(BlimpOutputSurface); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace client | 31 } // namespace client |
| 32 } // namespace blimp | 32 } // namespace blimp |
| 33 | 33 |
| 34 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ | 34 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ |
| OLD | NEW |