| 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 // ImageTransportFactory implementation. | 38 // ContextFactory 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. |
| 49 virtual ui::ContextFactory* AsContextFactory() OVERRIDE; | 52 virtual ui::ContextFactory* AsContextFactory() OVERRIDE; |
| 50 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() OVERRIDE; | 53 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() OVERRIDE; |
| 51 virtual void DestroySharedSurfaceHandle( | 54 virtual void DestroySharedSurfaceHandle( |
| 52 gfx::GLSurfaceHandle surface) OVERRIDE; | 55 gfx::GLSurfaceHandle surface) OVERRIDE; |
| 53 virtual scoped_refptr<ui::Texture> CreateTransportClient( | 56 virtual scoped_refptr<ui::Texture> CreateTransportClient( |
| 54 float device_scale_factor) OVERRIDE; | 57 float device_scale_factor) OVERRIDE; |
| 55 virtual scoped_refptr<ui::Texture> CreateOwnedTexture( | 58 virtual scoped_refptr<ui::Texture> CreateOwnedTexture( |
| 56 const gfx::Size& size, | 59 const gfx::Size& size, |
| 57 float device_scale_factor, | 60 float device_scale_factor, |
| 58 unsigned int texture_id) OVERRIDE; | 61 unsigned int texture_id) OVERRIDE; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 IDMap<BrowserCompositorOutputSurface> output_surface_map_; | 101 IDMap<BrowserCompositorOutputSurface> output_surface_map_; |
| 99 | 102 |
| 100 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; | 103 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; |
| 101 | 104 |
| 102 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); | 105 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); |
| 103 }; | 106 }; |
| 104 | 107 |
| 105 } // namespace content | 108 } // namespace content |
| 106 | 109 |
| 107 #endif // CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 110 #endif // CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
| OLD | NEW |