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

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

Issue 7860028: Retry 3 to split WebGraphicsContext3DCommandBufferImpl::initialize() into two stages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fold thread fixes into this patch. Created 9 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
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 #ifndef CONTENT_RENDERER_GPU_TRANSPORT_TEXTURE_SERVICE_H_ 5 #ifndef CONTENT_RENDERER_GPU_TRANSPORT_TEXTURE_SERVICE_H_
6 #define CONTENT_RENDERER_GPU_TRANSPORT_TEXTURE_SERVICE_H_ 6 #define CONTENT_RENDERER_GPU_TRANSPORT_TEXTURE_SERVICE_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 TransportTextureService(); 25 TransportTextureService();
26 virtual ~TransportTextureService(); 26 virtual ~TransportTextureService();
27 27
28 // IPC::ChannelProxy::MessageFilter implementations. 28 // IPC::ChannelProxy::MessageFilter implementations.
29 virtual bool OnMessageReceived(const IPC::Message& message); 29 virtual bool OnMessageReceived(const IPC::Message& message);
30 virtual void OnFilterAdded(IPC::Channel* channel); 30 virtual void OnFilterAdded(IPC::Channel* channel);
31 virtual void OnFilterRemoved(); 31 virtual void OnFilterRemoved();
32 virtual void OnChannelClosing(); 32 virtual void OnChannelClosing();
33 33
34 // Called on RenderThread to create a TransportTextureHost. 34 // Called on ChildThread to create a TransportTextureHost.
35 // 35 //
36 // A routing ID for the GLES2 context needs to be provided. This is 36 // A routing ID for the GLES2 context needs to be provided. This is
37 // important because the resources used needs to be shared with the GLES2 37 // important because the resources used needs to be shared with the GLES2
38 // context corresponding to the RenderView. 38 // context corresponding to the RenderView.
39 scoped_refptr<TransportTextureHost> CreateTransportTextureHost( 39 scoped_refptr<TransportTextureHost> CreateTransportTextureHost(
40 RendererGLContext* context, int context_route_id); 40 RendererGLContext* context, int context_route_id);
41 41
42 // Called by TransportTextureHost to remove a route. 42 // Called by TransportTextureHost to remove a route.
43 void RemoveRoute(int32 host_id); 43 void RemoveRoute(int32 host_id);
44 44
(...skipping 22 matching lines...) Expand all
67 // ID for the next TransportTextureHost. 67 // ID for the next TransportTextureHost.
68 int32 next_host_id_; 68 int32 next_host_id_;
69 69
70 std::vector<PendingRoute> pending_routes_; 70 std::vector<PendingRoute> pending_routes_;
71 std::vector<IPC::Message*> pending_messages_; 71 std::vector<IPC::Message*> pending_messages_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(TransportTextureService); 73 DISALLOW_COPY_AND_ASSIGN(TransportTextureService);
74 }; 74 };
75 75
76 #endif // CONTENT_RENDERER_GPU_TRANSPORT_TEXTURE_SERVICE_H_ 76 #endif // CONTENT_RENDERER_GPU_TRANSPORT_TEXTURE_SERVICE_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/renderer_gl_context.cc ('k') | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698