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 #pragma once | |
8 | 7 |
9 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
10 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
11 | 10 |
12 namespace content { | 11 namespace content { |
13 class GLHelper; | 12 class GLHelper; |
14 } | 13 } |
15 | 14 |
16 namespace gfx { | 15 namespace gfx { |
17 class Size; | 16 class Size; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // is shared with the compositor context, e.g. to create a texture in its | 91 // is shared with the compositor context, e.g. to create a texture in its |
93 // namespace. The caller gets ownership of the object. | 92 // namespace. The caller gets ownership of the object. |
94 // This will return NULL when using out-of-process (command buffer) contexts. | 93 // This will return NULL when using out-of-process (command buffer) contexts. |
95 virtual gfx::ScopedMakeCurrent* GetScopedMakeCurrent() = 0; | 94 virtual gfx::ScopedMakeCurrent* GetScopedMakeCurrent() = 0; |
96 | 95 |
97 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; | 96 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; |
98 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; | 97 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; |
99 }; | 98 }; |
100 | 99 |
101 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ | 100 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ |
OLD | NEW |