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

Side by Side Diff: content/common/gpu/gpu_channel.h

Issue 10868048: Report texture upload time in renderingStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert to surface_id instead of route_id. Created 8 years, 3 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
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_COMMON_GPU_GPU_CHANNEL_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void OnRegisterStreamTextureProxy( 150 void OnRegisterStreamTextureProxy(
151 int32 stream_id, const gfx::Size& initial_size, int32* route_id); 151 int32 stream_id, const gfx::Size& initial_size, int32* route_id);
152 152
153 // Create a java surface texture object and send it to the renderer process 153 // Create a java surface texture object and send it to the renderer process
154 // through binder thread. 154 // through binder thread.
155 void OnEstablishStreamTexture( 155 void OnEstablishStreamTexture(
156 int32 stream_id, content::SurfaceTexturePeer::SurfaceTextureTarget type, 156 int32 stream_id, content::SurfaceTexturePeer::SurfaceTextureTarget type,
157 int32 primary_id, int32 secondary_id); 157 int32 primary_id, int32 secondary_id);
158 #endif 158 #endif
159 159
160 // Collect rendering stats.
161 void OnCollectRenderingStatsForSurface(
162 int32 surface_id, IPC::Message* reply_message);
163
160 // The lifetime of objects of this class is managed by a GpuChannelManager. 164 // The lifetime of objects of this class is managed by a GpuChannelManager.
161 // The GpuChannelManager destroy all the GpuChannels that they own when they 165 // The GpuChannelManager destroy all the GpuChannels that they own when they
162 // are destroyed. So a raw pointer is safe. 166 // are destroyed. So a raw pointer is safe.
163 GpuChannelManager* gpu_channel_manager_; 167 GpuChannelManager* gpu_channel_manager_;
164 168
165 scoped_ptr<IPC::SyncChannel> channel_; 169 scoped_ptr<IPC::SyncChannel> channel_;
166 170
167 // Number of routed messages for pending processing on a stub. 171 // Number of routed messages for pending processing on a stub.
168 scoped_refptr<gpu::RefCountedCounter> unprocessed_messages_; 172 scoped_refptr<gpu::RefCountedCounter> unprocessed_messages_;
169 173
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 #if defined(OS_ANDROID) 208 #if defined(OS_ANDROID)
205 scoped_ptr<content::StreamTextureManagerAndroid> stream_texture_manager_; 209 scoped_ptr<content::StreamTextureManagerAndroid> stream_texture_manager_;
206 #endif 210 #endif
207 211
208 base::WeakPtrFactory<GpuChannel> weak_factory_; 212 base::WeakPtrFactory<GpuChannel> weak_factory_;
209 213
210 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 214 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
211 }; 215 };
212 216
213 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 217 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698