Index: blimp/client/compositor/blimp_output_surface.h |
diff --git a/blimp/client/compositor/blimp_output_surface.h b/blimp/client/compositor/blimp_output_surface.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ab916c04ba8240d7dd4df11a675d8430d99fd5d4 |
--- /dev/null |
+++ b/blimp/client/compositor/blimp_output_surface.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2015 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 BLIMP_CLIENT_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ |
+#define BLIMP_CLIENT_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "base/memory/weak_ptr.h" |
+#include "cc/output/output_surface.h" |
+ |
+namespace blimp { |
+ |
+// A simple class with the basic implementation required for a |
+// cc::OutputSurface. |
Wez
2015/08/27 18:23:55
nit: We can see it's a simple class, suggest reduc
David Trainor- moved to gerrit
2015/08/28 01:23:47
Done.
|
+class BlimpOutputSurface : public cc::OutputSurface { |
+ public: |
+ explicit BlimpOutputSurface( |
+ const scoped_refptr<cc::ContextProvider>& context_provider); |
+ ~BlimpOutputSurface() override; |
+ |
+ // OutputSurface Implementation ---------------------------------------------- |
Wez
2015/08/27 18:23:55
nit: See my comment style whinges elsewhere. :)
David Trainor- moved to gerrit
2015/08/28 01:23:47
Done.
|
+ void SwapBuffers(cc::CompositorFrame* frame) override; |
+ |
+ private: |
+ base::WeakPtrFactory<BlimpOutputSurface> weak_factory_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(BlimpOutputSurface); |
+}; |
+ |
+} // namespace blimp |
+ |
+#endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ |