| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Transport texture is a mechanism to share a texture between renderer process | 5 // Transport texture is a mechanism to share a texture between renderer process |
| 6 // and GPU process. This is useful when a texture is used in the renderer | 6 // and GPU process. This is useful when a texture is used in the renderer |
| 7 // process but updated in the GPU process. | 7 // process but updated in the GPU process. |
| 8 // | 8 // |
| 9 // BACKGROUND INFORMATION | 9 // BACKGROUND INFORMATION |
| 10 // | 10 // |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // NewRunnableFunction(&TextureCreateDone), | 86 // NewRunnableFunction(&TextureCreateDone), |
| 87 // textures); | 87 // textures); |
| 88 // } | 88 // } |
| 89 | 89 |
| 90 #ifndef CONTENT_RENDERER_TRANSPORT_TEXTURE_HOST_H_ | 90 #ifndef CONTENT_RENDERER_TRANSPORT_TEXTURE_HOST_H_ |
| 91 #define CONTENT_RENDERER_TRANSPORT_TEXTURE_HOST_H_ | 91 #define CONTENT_RENDERER_TRANSPORT_TEXTURE_HOST_H_ |
| 92 | 92 |
| 93 #include <vector> | 93 #include <vector> |
| 94 | 94 |
| 95 #include "base/basictypes.h" | 95 #include "base/basictypes.h" |
| 96 #include "base/callback.h" | 96 #include "base/callback_old.h" |
| 97 #include "base/memory/ref_counted.h" | 97 #include "base/memory/ref_counted.h" |
| 98 #include "base/memory/scoped_ptr.h" | 98 #include "base/memory/scoped_ptr.h" |
| 99 #include "base/task.h" | 99 #include "base/task.h" |
| 100 #include "ipc/ipc_channel.h" | 100 #include "ipc/ipc_channel.h" |
| 101 | 101 |
| 102 class MessageLoop; | 102 class MessageLoop; |
| 103 class RendererGLContext; | 103 class RendererGLContext; |
| 104 class TransportTextureService; | 104 class TransportTextureService; |
| 105 | 105 |
| 106 class TransportTextureHost | 106 class TransportTextureHost |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // A list of textures generated. | 188 // A list of textures generated. |
| 189 std::vector<int> textures_; | 189 std::vector<int> textures_; |
| 190 | 190 |
| 191 // Callback when a texture is updated. | 191 // Callback when a texture is updated. |
| 192 scoped_ptr<TextureUpdateCallback> update_callback_; | 192 scoped_ptr<TextureUpdateCallback> update_callback_; |
| 193 | 193 |
| 194 DISALLOW_COPY_AND_ASSIGN(TransportTextureHost); | 194 DISALLOW_COPY_AND_ASSIGN(TransportTextureHost); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 #endif // CONTENT_RENDERER_TRANSPORT_TEXTURE_HOST_H_ | 197 #endif // CONTENT_RENDERER_TRANSPORT_TEXTURE_HOST_H_ |
| OLD | NEW |