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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() OVERRIDE; | 54 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() OVERRIDE; |
55 virtual void DestroySharedSurfaceHandle( | 55 virtual void DestroySharedSurfaceHandle( |
56 gfx::GLSurfaceHandle surface) OVERRIDE; | 56 gfx::GLSurfaceHandle surface) OVERRIDE; |
57 virtual scoped_refptr<ui::Texture> CreateTransportClient( | 57 virtual scoped_refptr<ui::Texture> CreateTransportClient( |
58 float device_scale_factor) OVERRIDE; | 58 float device_scale_factor) OVERRIDE; |
59 virtual scoped_refptr<ui::Texture> CreateOwnedTexture( | 59 virtual scoped_refptr<ui::Texture> CreateOwnedTexture( |
60 const gfx::Size& size, | 60 const gfx::Size& size, |
61 float device_scale_factor, | 61 float device_scale_factor, |
62 unsigned int texture_id) OVERRIDE; | 62 unsigned int texture_id) OVERRIDE; |
63 virtual GLHelper* GetGLHelper() OVERRIDE; | 63 virtual GLHelper* GetGLHelper() OVERRIDE; |
64 virtual uint32 InsertSyncPoint() OVERRIDE; | |
65 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE; | |
66 virtual void AddObserver(ImageTransportFactoryObserver* observer) OVERRIDE; | 64 virtual void AddObserver(ImageTransportFactoryObserver* observer) OVERRIDE; |
67 virtual void RemoveObserver( | 65 virtual void RemoveObserver( |
68 ImageTransportFactoryObserver* observer) OVERRIDE; | 66 ImageTransportFactoryObserver* observer) OVERRIDE; |
69 | 67 |
70 private: | 68 private: |
71 struct PerCompositorData; | 69 struct PerCompositorData; |
72 | 70 |
73 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); | 71 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); |
74 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> | 72 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> |
75 CreateContextCommon(int surface_id); | 73 CreateContextCommon(int surface_id); |
(...skipping 14 matching lines...) Expand all Loading... |
90 IDMap<BrowserCompositorOutputSurface> output_surface_map_; | 88 IDMap<BrowserCompositorOutputSurface> output_surface_map_; |
91 | 89 |
92 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; | 90 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; |
93 | 91 |
94 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); | 92 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); |
95 }; | 93 }; |
96 | 94 |
97 } // namespace content | 95 } // namespace content |
98 | 96 |
99 #endif // CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ | 97 #endif // CONTENT_BROWSER_AURA_GPU_PROCESS_TRANSPORT_FACTORY_H_ |
OLD | NEW |