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..9f2691547b2cae87cf0bbccfa510bc96024e2151 |
| --- /dev/null |
| +++ b/content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h |
| @@ -0,0 +1,40 @@ |
| +// 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); |
| + 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; |
| + |
| + unsigned int internalformat_; |
| + scoped_ptr<BufferedOutputSurface> output_surface_; |
|
piman
2014/09/11 20:25:29
nit: DISALLOW_COPY_AND_ASSIGN
achaulk
2014/09/12 19:51:08
Done.
|
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |