Chromium Code Reviews| Index: services/gfx/compositor/backend/output.h |
| diff --git a/services/gfx/compositor/backend/output.h b/services/gfx/compositor/backend/output.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e3df5d25d0731a84c9f282d858413a290bf213a5 |
| --- /dev/null |
| +++ b/services/gfx/compositor/backend/output.h |
| @@ -0,0 +1,35 @@ |
| +// 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 SERVICES_GFX_COMPOSITOR_BACKEND_OUTPUT_H_ |
| +#define SERVICES_GFX_COMPOSITOR_BACKEND_OUTPUT_H_ |
| + |
| +#include <memory> |
| + |
| +#include "base/macros.h" |
| + |
| +namespace compositor { |
| + |
| +class RenderFrame; |
| +class Scheduler; |
| + |
| +// Renders snapshotted frames of the scene graph to a display output. |
|
viettrungluu
2016/01/04 21:08:23
Could you comment on any thread-safety requirement
jeffbrown
2016/01/16 03:28:31
Done.
|
| +class Output { |
| + public: |
| + Output() = default; |
|
viettrungluu
2016/01/04 21:08:23
nit: I think we'd usually just say "{}" instead of
jeffbrown
2016/01/16 03:28:31
Yeah. I'm experimenting with the style mostly. U
|
| + virtual ~Output() = default; |
| + |
| + // Gets the output's frame scheduler. |
| + virtual Scheduler* scheduler() = 0; |
|
viettrungluu
2016/01/04 21:08:23
nit: lowercase_c_style() is usually reserved for i
jeffbrown
2016/01/16 03:28:31
Done.
|
| + |
| + // Submits a frame to be rendered to the display. |
| + virtual void SubmitFrame(const std::shared_ptr<RenderFrame>& frame) = 0; |
|
viettrungluu
2016/01/04 21:08:23
I wonder if this should take an std::shared_ptr<Re
jeffbrown
2016/01/16 03:28:31
I think the style guide says we should only use &&
|
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(Output); |
| +}; |
| + |
| +} // namespace compositor |
| + |
| +#endif // SERVICES_GFX_COMPOSITOR_BACKEND_OUTPUT_H_ |