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

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

Issue 57883007: Adding support for VSyncProvider to the software drawing path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use BrowserCompositorOutputSurface as base class Created 7 years, 1 month 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
(Empty)
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.
4
5 #ifndef CONTENT_BROWSER_AURA_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_AURA_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7
8 #include "content/browser/aura/browser_compositor_output_surface.h"
9
10 namespace content {
11
12 // Adapts a WebGraphicsContext3DCommandBufferImpl into a
13 // cc::OutputSurface that also handles vsync parameter updates
14 // arriving from the GPU process.
15 class GpuBrowserCompositorOutputSurface
16 : public BrowserCompositorOutputSurface {
17
piman 2013/11/07 00:45:12 nit: no need for blank line
dnicoara 2013/11/07 15:17:41 Done.
18 public:
19 GpuBrowserCompositorOutputSurface(
20 const scoped_refptr<ContextProviderCommandBuffer>& context,
21 int surface_id,
22 IDMap<BrowserCompositorOutputSurface>* output_surface_map,
23 base::MessageLoopProxy* compositor_message_loop,
24 base::WeakPtr<ui::Compositor> compositor);
25
26 virtual ~GpuBrowserCompositorOutputSurface();
27
28 private:
29 // cc::OutputSurface implementation.
30 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
31 };
piman 2013/11/07 00:45:12 nit: DISALLOW_COPY_AND_ASSIGN
dnicoara 2013/11/07 15:17:41 Done.
32
33 } // namespace content
34
35 #endif // CONTENT_BROWSER_AURA_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698