Chromium Code Reviews| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 ui::Layer* target) OVERRIDE; | 42 ui::Layer* target) OVERRIDE; |
| 43 virtual void RemoveReflector( | 43 virtual void RemoveReflector( |
| 44 scoped_refptr<ui::Reflector> reflector) OVERRIDE; | 44 scoped_refptr<ui::Reflector> reflector) OVERRIDE; |
| 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 SharedMainThreadContextProvider() OVERRIDE; | 47 SharedMainThreadContextProvider() OVERRIDE; |
| 48 virtual bool DoesCreateTestContexts() OVERRIDE; | 48 virtual bool DoesCreateTestContexts() OVERRIDE; |
| 49 virtual cc::SharedBitmapManager* GetSharedBitmapManager() OVERRIDE; | 49 virtual cc::SharedBitmapManager* GetSharedBitmapManager() OVERRIDE; |
| 50 | 50 |
| 51 // ImageTransportFactory implementation. | 51 // ImageTransportFactory implementation. |
| 52 virtual ui::ContextFactory* AsContextFactory() OVERRIDE; | |
|
danakj
2014/05/09 17:22:42
Can you just upcast this class instead?
danakj
2014/05/09 17:23:25
Oh, nevermind, you're calling this on the ImageTra
| |
| 52 virtual gfx::GLSurfaceHandle GetSharedSurfaceHandle() OVERRIDE; | 53 virtual gfx::GLSurfaceHandle GetSharedSurfaceHandle() OVERRIDE; |
| 53 virtual GLHelper* GetGLHelper() OVERRIDE; | 54 virtual GLHelper* GetGLHelper() OVERRIDE; |
| 54 virtual void AddObserver(ImageTransportFactoryObserver* observer) OVERRIDE; | 55 virtual void AddObserver(ImageTransportFactoryObserver* observer) OVERRIDE; |
| 55 virtual void RemoveObserver( | 56 virtual void RemoveObserver( |
| 56 ImageTransportFactoryObserver* observer) OVERRIDE; | 57 ImageTransportFactoryObserver* observer) OVERRIDE; |
| 57 | 58 |
| 58 private: | 59 private: |
| 59 struct PerCompositorData; | 60 struct PerCompositorData; |
| 60 | 61 |
| 61 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); | 62 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 77 IDMap<BrowserCompositorOutputSurface> output_surface_map_; | 78 IDMap<BrowserCompositorOutputSurface> output_surface_map_; |
| 78 | 79 |
| 79 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; | 80 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; |
| 80 | 81 |
| 81 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); | 82 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace content | 85 } // namespace content |
| 85 | 86 |
| 86 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 87 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
| OLD | NEW |