Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: content/renderer/gpu/transport_texture_host.h

Issue 7066035: Moved GPU related files in content/renderer into gpu subdirectory. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // 80 //
81 // // When init is requested from renderer. 81 // // When init is requested from renderer.
82 // vector<int> textures; 82 // vector<int> textures;
83 // 83 //
84 // void OnInit() { 84 // void OnInit() {
85 // factory->CreateTextures(3, 1024, 768, TransportTexture::RGB, &textures, 85 // factory->CreateTextures(3, 1024, 768, TransportTexture::RGB, &textures,
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_GPU_TRANSPORT_TEXTURE_HOST_H_
91 #define CONTENT_RENDERER_TRANSPORT_TEXTURE_HOST_H_ 91 #define CONTENT_RENDERER_GPU_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_old.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
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
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_GPU_TRANSPORT_TEXTURE_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/renderer_gl_context.cc ('k') | content/renderer/gpu/transport_texture_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698