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_AURA_IMAGE_TRANSPORT_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_AURA_IMAGE_TRANSPORT_FACTORY_H_ |
6 #define CONTENT_BROWSER_AURA_IMAGE_TRANSPORT_FACTORY_H_ | 6 #define CONTENT_BROWSER_AURA_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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual scoped_refptr<ui::Texture> CreateOwnedTexture( | 84 virtual scoped_refptr<ui::Texture> CreateOwnedTexture( |
85 const gfx::Size& size, | 85 const gfx::Size& size, |
86 float device_scale_factor, | 86 float device_scale_factor, |
87 unsigned int texture_id) = 0; | 87 unsigned int texture_id) = 0; |
88 | 88 |
89 // Gets a GLHelper instance, associated with the shared context. This | 89 // Gets a GLHelper instance, associated with the shared context. This |
90 // GLHelper will get destroyed whenever the shared context is lost | 90 // GLHelper will get destroyed whenever the shared context is lost |
91 // (ImageTransportFactoryObserver::OnLostResources is called). | 91 // (ImageTransportFactoryObserver::OnLostResources is called). |
92 virtual GLHelper* GetGLHelper() = 0; | 92 virtual GLHelper* GetGLHelper() = 0; |
93 | 93 |
94 // Inserts a SyncPoint into the shared context. | |
95 virtual uint32 InsertSyncPoint() = 0; | |
96 | |
97 // Blocks waiting for the sync point on the service side. | |
98 virtual void WaitSyncPoint(uint32 sync_point) = 0; | |
99 | |
100 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; | 94 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; |
101 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; | 95 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; |
102 }; | 96 }; |
103 | 97 |
104 } // namespace content | 98 } // namespace content |
105 | 99 |
106 #endif // CONTENT_BROWSER_AURA_IMAGE_TRANSPORT_FACTORY_H_ | 100 #endif // CONTENT_BROWSER_AURA_IMAGE_TRANSPORT_FACTORY_H_ |
OLD | NEW |