| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle( | 69 virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle( |
| 70 ui::Compositor* compositor) = 0; | 70 ui::Compositor* compositor) = 0; |
| 71 | 71 |
| 72 // Destroys a shared surface handle. | 72 // Destroys a shared surface handle. |
| 73 virtual void DestroySharedSurfaceHandle(gfx::GLSurfaceHandle surface) = 0; | 73 virtual void DestroySharedSurfaceHandle(gfx::GLSurfaceHandle surface) = 0; |
| 74 | 74 |
| 75 // Creates a transport texture of a given size, and using the opaque handle | 75 // Creates a transport texture of a given size, and using the opaque handle |
| 76 // sent by the GPU process. | 76 // sent by the GPU process. |
| 77 virtual scoped_refptr<ui::Texture> CreateTransportClient( | 77 virtual scoped_refptr<ui::Texture> CreateTransportClient( |
| 78 const gfx::Size& size, | 78 const gfx::Size& size, |
| 79 uint64* transport_handle, | 79 uint64 transport_handle, |
| 80 ui::Compositor* compositor) = 0; | 80 ui::Compositor* compositor) = 0; |
| 81 | 81 |
| 82 // Gets a GLHelper instance, associated with the compositor context. This | 82 // Gets a GLHelper instance, associated with the compositor context. This |
| 83 // GLHelper will get destroyed whenever the context is lost ( | 83 // GLHelper will get destroyed whenever the context is lost ( |
| 84 virtual content::GLHelper* GetGLHelper(ui::Compositor* compositor) = 0; | 84 virtual content::GLHelper* GetGLHelper(ui::Compositor* compositor) = 0; |
| 85 | 85 |
| 86 // Inserts a SyncPoint into the compositor's context. | 86 // Inserts a SyncPoint into the compositor's context. |
| 87 virtual uint32 InsertSyncPoint(ui::Compositor* compositor) = 0; | 87 virtual uint32 InsertSyncPoint(ui::Compositor* compositor) = 0; |
| 88 | 88 |
| 89 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; | 89 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; |
| 90 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; | 90 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ | 93 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ |
| OLD | NEW |