| 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_IMAGE_TRANSPORT_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 virtual gfx::GLSurfaceHandle GetSharedSurfaceHandle() = 0; | 70 virtual gfx::GLSurfaceHandle GetSharedSurfaceHandle() = 0; |
| 71 | 71 |
| 72 // Gets a GLHelper instance, associated with the shared context. This | 72 // Gets a GLHelper instance, associated with the shared context. This |
| 73 // GLHelper will get destroyed whenever the shared context is lost | 73 // GLHelper will get destroyed whenever the shared context is lost |
| 74 // (ImageTransportFactoryObserver::OnLostResources is called). | 74 // (ImageTransportFactoryObserver::OnLostResources is called). |
| 75 virtual GLHelper* GetGLHelper() = 0; | 75 virtual GLHelper* GetGLHelper() = 0; |
| 76 | 76 |
| 77 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; | 77 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; |
| 78 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; | 78 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; |
| 79 |
| 80 #if defined(OS_MACOSX) |
| 81 virtual void OnSurfaceDisplayed(int surface_id) = 0; |
| 82 #endif |
| 79 }; | 83 }; |
| 80 | 84 |
| 81 } // namespace content | 85 } // namespace content |
| 82 | 86 |
| 83 #endif // CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ | 87 #endif // CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ |
| OLD | NEW |