OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
6 #define CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 6 #define CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 : public ui::ContextFactory, | 28 : public ui::ContextFactory, |
29 public ImageTransportFactory { | 29 public ImageTransportFactory { |
30 public: | 30 public: |
31 GpuProcessTransportFactory(); | 31 GpuProcessTransportFactory(); |
32 | 32 |
33 virtual ~GpuProcessTransportFactory(); | 33 virtual ~GpuProcessTransportFactory(); |
34 | 34 |
35 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> | 35 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> |
36 CreateOffscreenCommandBufferContext(); | 36 CreateOffscreenCommandBufferContext(); |
37 | 37 |
38 // ContextFactory implementation. | 38 // ImageTransportFactory implementation. |
39 virtual scoped_ptr<WebKit::WebGraphicsContext3D> CreateOffscreenContext() | 39 virtual scoped_ptr<WebKit::WebGraphicsContext3D> CreateOffscreenContext() |
40 OVERRIDE; | 40 OVERRIDE; |
41 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 41 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
42 ui::Compositor* compositor) OVERRIDE; | 42 ui::Compositor* compositor) OVERRIDE; |
43 virtual scoped_refptr<ui::Reflector> CreateReflector( | 43 virtual scoped_refptr<ui::Reflector> CreateReflector( |
44 ui::Compositor* source, | 44 ui::Compositor* source, |
45 ui::Layer* target) OVERRIDE; | 45 ui::Layer* target) OVERRIDE; |
46 virtual void RemoveReflector( | 46 virtual void RemoveReflector( |
47 scoped_refptr<ui::Reflector> reflector) OVERRIDE; | 47 scoped_refptr<ui::Reflector> reflector) OVERRIDE; |
48 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE; | 48 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE; |
49 virtual bool DoesCreateTestContexts() OVERRIDE; | |
50 | |
51 // ImageTransportFactory implementation. | |
52 virtual ui::ContextFactory* AsContextFactory() OVERRIDE; | 49 virtual ui::ContextFactory* AsContextFactory() OVERRIDE; |
53 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() OVERRIDE; | 50 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() OVERRIDE; |
54 virtual void DestroySharedSurfaceHandle( | 51 virtual void DestroySharedSurfaceHandle( |
55 gfx::GLSurfaceHandle surface) OVERRIDE; | 52 gfx::GLSurfaceHandle surface) OVERRIDE; |
56 virtual scoped_refptr<ui::Texture> CreateTransportClient( | 53 virtual scoped_refptr<ui::Texture> CreateTransportClient( |
57 float device_scale_factor) OVERRIDE; | 54 float device_scale_factor) OVERRIDE; |
58 virtual scoped_refptr<ui::Texture> CreateOwnedTexture( | 55 virtual scoped_refptr<ui::Texture> CreateOwnedTexture( |
59 const gfx::Size& size, | 56 const gfx::Size& size, |
60 float device_scale_factor, | 57 float device_scale_factor, |
61 unsigned int texture_id) OVERRIDE; | 58 unsigned int texture_id) OVERRIDE; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 IDMap<BrowserCompositorOutputSurface> output_surface_map_; | 98 IDMap<BrowserCompositorOutputSurface> output_surface_map_; |
102 | 99 |
103 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; | 100 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; |
104 | 101 |
105 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); | 102 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); |
106 }; | 103 }; |
107 | 104 |
108 } // namespace content | 105 } // namespace content |
109 | 106 |
110 #endif // CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 107 #endif // CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
OLD | NEW |