Remove PlatformFile from profile_browsertest
[chromium-blink-merge.git] / content / browser / compositor / gpu_browser_compositor_output_surface.h
bloba773ad54b74d1925b5211c79f7ad8a1d68ea4096
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
8 #include "content/browser/compositor/browser_compositor_output_surface.h"
10 namespace ui {
11 class CompositorVSyncManager;
14 namespace content {
16 // Adapts a WebGraphicsContext3DCommandBufferImpl into a
17 // cc::OutputSurface that also handles vsync parameter updates
18 // arriving from the GPU process.
19 class GpuBrowserCompositorOutputSurface
20 : public BrowserCompositorOutputSurface {
21 public:
22 GpuBrowserCompositorOutputSurface(
23 const scoped_refptr<ContextProviderCommandBuffer>& context,
24 int surface_id,
25 IDMap<BrowserCompositorOutputSurface>* output_surface_map,
26 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager);
28 virtual ~GpuBrowserCompositorOutputSurface();
30 private:
31 // cc::OutputSurface implementation.
32 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
34 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface);
37 } // namespace content
39 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_