| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_SURFACE_H_ | 6 #define CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include "cc/output/output_surface.h" | 8 #include "cc/output/output_surface.h" |
| 9 | 9 |
| 10 namespace cc { class SoftwareOutputDevice; } | 10 namespace cc { class SoftwareOutputDevice; } |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 // TODO(danakj): Inherit from BrowserCompositorOutputSurface to share stuff like | 14 // TODO(danakj): Inherit from BrowserCompositorOutputSurface to share stuff like |
| 15 // reflectors, when we split the GL-specific stuff out of the class. | 15 // reflectors, when we split the GL-specific stuff out of the class. |
| 16 class SoftwareBrowserCompositorOutputSurface : public cc::OutputSurface { | 16 class SoftwareBrowserCompositorOutputSurface : public cc::OutputSurface { |
| 17 public: | 17 public: |
| 18 static scoped_ptr<SoftwareBrowserCompositorOutputSurface> Create( | 18 static scoped_ptr<SoftwareBrowserCompositorOutputSurface> Create( |
| 19 scoped_ptr<cc::SoftwareOutputDevice> software_device) { | 19 scoped_ptr<cc::SoftwareOutputDevice> software_device) { |
| 20 return make_scoped_ptr( | 20 return make_scoped_ptr( |
| 21 new SoftwareBrowserCompositorOutputSurface(software_device.Pass())); | 21 new SoftwareBrowserCompositorOutputSurface(software_device.Pass())); |
| 22 } | 22 } |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 explicit SoftwareBrowserCompositorOutputSurface( | 25 explicit SoftwareBrowserCompositorOutputSurface( |
| 26 scoped_ptr<cc::SoftwareOutputDevice> software_device); | 26 scoped_ptr<cc::SoftwareOutputDevice> software_device); |
| 27 | 27 |
| 28 static void PostCompositorFrameDrawn(const ui::LatencyInfo& latency_info); |
| 29 |
| 28 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; | 30 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; |
| 29 }; | 31 }; |
| 30 | 32 |
| 31 } // namespace content | 33 } // namespace content |
| 32 | 34 |
| 33 #endif // CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_SURFACE_H_ | 35 #endif // CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_SURFACE_H_ |
| OLD | NEW |