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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 unsigned int texture_id) = 0; | 82 unsigned int texture_id) = 0; |
83 | 83 |
84 // Gets a GLHelper instance, associated with the shared context. This | 84 // Gets a GLHelper instance, associated with the shared context. This |
85 // GLHelper will get destroyed whenever the shared context is lost | 85 // GLHelper will get destroyed whenever the shared context is lost |
86 // (ImageTransportFactoryObserver::OnLostResources is called). | 86 // (ImageTransportFactoryObserver::OnLostResources is called). |
87 virtual content::GLHelper* GetGLHelper() = 0; | 87 virtual content::GLHelper* GetGLHelper() = 0; |
88 | 88 |
89 // Inserts a SyncPoint into the shared context. | 89 // Inserts a SyncPoint into the shared context. |
90 virtual uint32 InsertSyncPoint() = 0; | 90 virtual uint32 InsertSyncPoint() = 0; |
91 | 91 |
92 // Sets the device scale factor. | |
93 virtual void SetDeviceScaleFactor(float device_scale_factor) = 0; | |
piman
2012/09/21 00:59:34
Because ImageTransportFactory is a singleton, that
Jun Mukai
2012/09/21 02:28:52
removed this and added an argument to CreateTransp
| |
94 | |
92 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; | 95 virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0; |
93 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; | 96 virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0; |
94 }; | 97 }; |
95 | 98 |
96 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ | 99 #endif // CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_H_ |
OLD | NEW |