Chromium Code Reviews| Index: content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h |
| diff --git a/content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h b/content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fd7b462b0f53b1c986b1512dbb6f3918e6538c9c |
| --- /dev/null |
| +++ b/content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2014 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 CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| +#define CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| + |
| +#include "content/browser/compositor/gpu_browser_compositor_output_surface.h" |
| + |
| +namespace content { |
| + |
| +class BufferedOutputSurface; |
| + |
| +class GpuSurfacelessBrowserCompositorOutputSurface |
| + : public GpuBrowserCompositorOutputSurface { |
| + public: |
| + GpuSurfacelessBrowserCompositorOutputSurface( |
| + const scoped_refptr<ContextProviderCommandBuffer>& context, |
| + int surface_id, |
| + IDMap<BrowserCompositorOutputSurface>* output_surface_map, |
| + const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, |
| + scoped_ptr<cc::OverlayCandidateValidator> overlay_candidate_validator, |
| + unsigned internalformat, |
| + int z_order); |
|
alexst (slow to review)
2014/09/10 15:39:07
Let's leave z order for a followup CL.
|
| + virtual ~GpuSurfacelessBrowserCompositorOutputSurface(); |
| + |
| + private: |
| + // cc::OutputSurface implementation. |
| + virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; |
| + virtual void OnSwapBuffersComplete() OVERRIDE; |
| + virtual void BindFramebuffer() OVERRIDE; |
| + virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE; |
| + virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; |
| + |
| + int z_order_; |
| + bool expects_pageflip_messages_; |
| + unsigned int internalformat_; |
| + scoped_ptr<BufferedOutputSurface> output_surface_; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |