| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE; | 45 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE; |
| 46 virtual scoped_refptr<cc::ContextProvider> | 46 virtual scoped_refptr<cc::ContextProvider> |
| 47 OffscreenCompositorContextProvider() OVERRIDE; | 47 OffscreenCompositorContextProvider() OVERRIDE; |
| 48 virtual scoped_refptr<cc::ContextProvider> | 48 virtual scoped_refptr<cc::ContextProvider> |
| 49 SharedMainThreadContextProvider() OVERRIDE; | 49 SharedMainThreadContextProvider() OVERRIDE; |
| 50 virtual bool DoesCreateTestContexts() OVERRIDE; | 50 virtual bool DoesCreateTestContexts() OVERRIDE; |
| 51 | 51 |
| 52 // ImageTransportFactory implementation. | 52 // ImageTransportFactory implementation. |
| 53 virtual ui::ContextFactory* AsContextFactory() OVERRIDE; | 53 virtual ui::ContextFactory* AsContextFactory() OVERRIDE; |
| 54 virtual gfx::GLSurfaceHandle GetSharedSurfaceHandle() OVERRIDE; | 54 virtual gfx::GLSurfaceHandle GetSharedSurfaceHandle() OVERRIDE; |
| 55 virtual scoped_refptr<ui::Texture> CreateOwnedTexture( | |
| 56 const gfx::Size& size, | |
| 57 float device_scale_factor, | |
| 58 unsigned int texture_id) OVERRIDE; | |
| 59 virtual GLHelper* GetGLHelper() OVERRIDE; | 55 virtual GLHelper* GetGLHelper() OVERRIDE; |
| 60 virtual void AddObserver(ImageTransportFactoryObserver* observer) OVERRIDE; | 56 virtual void AddObserver(ImageTransportFactoryObserver* observer) OVERRIDE; |
| 61 virtual void RemoveObserver( | 57 virtual void RemoveObserver( |
| 62 ImageTransportFactoryObserver* observer) OVERRIDE; | 58 ImageTransportFactoryObserver* observer) OVERRIDE; |
| 63 | 59 |
| 64 private: | 60 private: |
| 65 struct PerCompositorData; | 61 struct PerCompositorData; |
| 66 | 62 |
| 67 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); | 63 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); |
| 68 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> | 64 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 85 IDMap<BrowserCompositorOutputSurface> output_surface_map_; | 81 IDMap<BrowserCompositorOutputSurface> output_surface_map_; |
| 86 | 82 |
| 87 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; | 83 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; |
| 88 | 84 |
| 89 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); | 85 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); |
| 90 }; | 86 }; |
| 91 | 87 |
| 92 } // namespace content | 88 } // namespace content |
| 93 | 89 |
| 94 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 90 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
| OLD | NEW |