Add ICU message format support
[chromium-blink-merge.git] / content / browser / compositor / software_browser_compositor_output_surface.h
blob68776ca7aa653a3c7a4c302bf79d19b752008a06
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_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
8 #include "base/memory/weak_ptr.h"
9 #include "content/browser/compositor/browser_compositor_output_surface.h"
10 #include "content/common/content_export.h"
12 namespace cc {
13 class SoftwareOutputDevice;
16 namespace ui {
17 class CompositorVSyncManager;
20 namespace content {
22 class CONTENT_EXPORT SoftwareBrowserCompositorOutputSurface
23 : public BrowserCompositorOutputSurface {
24 public:
25 SoftwareBrowserCompositorOutputSurface(
26 scoped_ptr<cc::SoftwareOutputDevice> software_device,
27 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager);
29 ~SoftwareBrowserCompositorOutputSurface() override;
31 private:
32 void SwapBuffers(cc::CompositorFrame* frame) override;
34 #if defined(OS_MACOSX)
35 void OnSurfaceDisplayed() override;
36 void SetSurfaceSuspendedForRecycle(bool suspended) override;
37 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const override;
38 #endif
40 base::WeakPtrFactory<SoftwareBrowserCompositorOutputSurface> weak_factory_;
42 DISALLOW_COPY_AND_ASSIGN(SoftwareBrowserCompositorOutputSurface);
45 } // namespace content
47 #endif // CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_