Add ICU message format support
[chromium-blink-merge.git] / content / browser / compositor / gpu_surfaceless_browser_compositor_output_surface.h
blob27bb3358fbc5cbde5460580efe84b34f66f499c9
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_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
8 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
10 namespace content {
12 class BrowserGpuMemoryBufferManager;
13 class BufferQueue;
14 class GLHelper;
16 class GpuSurfacelessBrowserCompositorOutputSurface
17 : public GpuBrowserCompositorOutputSurface {
18 public:
19 GpuSurfacelessBrowserCompositorOutputSurface(
20 const scoped_refptr<ContextProviderCommandBuffer>& context,
21 int surface_id,
22 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
23 scoped_ptr<BrowserCompositorOverlayCandidateValidator>
24 overlay_candidate_validator,
25 unsigned int target,
26 unsigned int internalformat,
27 BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager);
28 ~GpuSurfacelessBrowserCompositorOutputSurface() override;
30 private:
31 // cc::OutputSurface implementation.
32 void SwapBuffers(cc::CompositorFrame* frame) override;
33 void OnSwapBuffersComplete() override;
34 void BindFramebuffer() override;
35 void Reshape(const gfx::Size& size, float scale_factor) override;
37 void OnSwapBuffersCompleted(const std::vector<ui::LatencyInfo>& latency_info,
38 gfx::SwapResult result) override;
39 #if defined(OS_MACOSX)
40 void OnSurfaceDisplayed() override;
41 #endif
43 unsigned int internalformat_;
44 scoped_ptr<GLHelper> gl_helper_;
45 scoped_ptr<BufferQueue> output_surface_;
46 BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager_;
49 } // namespace content
51 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_