IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / browser / aura / software_browser_compositor_output_surface.h
blob79c7901f05585e12e2bea8fad4f02d4ea53fffcc
1 // Copyright 2013 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_AURA_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_AURA_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
8 #include "base/memory/weak_ptr.h"
9 #include "content/browser/aura/browser_compositor_output_surface.h"
10 #include "content/common/content_export.h"
11 #include "ui/compositor/compositor.h"
13 namespace base {
14 class MessageLoopProxy;
17 namespace cc {
18 class SoftwareOutputDevice;
21 namespace content {
23 class BrowserCompositorOutputSurfaceProxy;
25 class CONTENT_EXPORT SoftwareBrowserCompositorOutputSurface
26 : public BrowserCompositorOutputSurface {
27 public:
28 SoftwareBrowserCompositorOutputSurface(
29 scoped_refptr<BrowserCompositorOutputSurfaceProxy> surface_proxy,
30 scoped_ptr<cc::SoftwareOutputDevice> software_device,
31 int surface_id,
32 IDMap<BrowserCompositorOutputSurface>* output_surface_map,
33 base::MessageLoopProxy* compositor_message_loop,
34 base::WeakPtr<ui::Compositor> compositor);
36 virtual ~SoftwareBrowserCompositorOutputSurface();
38 private:
39 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
41 // On the software path we need to explicitly call the proxy to update the
42 // VSync parameters.
43 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_;
45 DISALLOW_COPY_AND_ASSIGN(SoftwareBrowserCompositorOutputSurface);
48 } // namespace content
50 #endif // CONTENT_BROWSER_AURA_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_