Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Side by Side Diff: content/browser/aura/software_browser_compositor_output_surface.h

Issue 23694031: Fix race conditions in window snapshot code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made software compositing path call CompositorFrameDrawn asynchronously Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698