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

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

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 1 month 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) 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_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_
6 #define CONTENT_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_ 6 #define CONTENT_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "content/common/android/surface_texture_peer.h" 9 #include "content/common/android/surface_texture_peer.h"
10 #include "ipc/ipc_channel.h" 10 #include "ipc/ipc_channel.h"
11 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class Size; 14 class Size;
15 } 15 }
16 16
17 class GpuChannelHost;
18 struct GpuStreamTextureMsg_MatrixChanged_Params; 17 struct GpuStreamTextureMsg_MatrixChanged_Params;
19 18
20 namespace content { 19 namespace content {
20 class GpuChannelHost;
21 21
22 // Class for handling all the IPC messages between the GPU process and 22 // Class for handling all the IPC messages between the GPU process and
23 // StreamTextureProxy. 23 // StreamTextureProxy.
24 class StreamTextureHost : public IPC::Listener { 24 class StreamTextureHost : public IPC::Listener {
25 public: 25 public:
26 explicit StreamTextureHost(GpuChannelHost* channel); 26 explicit StreamTextureHost(GpuChannelHost* channel);
27 virtual ~StreamTextureHost(); 27 virtual ~StreamTextureHost();
28 28
29 bool Initialize(int stream_id, const gfx::Size& initial_size); 29 bool Initialize(int stream_id, const gfx::Size& initial_size);
30 30
(...skipping 27 matching lines...) Expand all
58 Listener* listener_; 58 Listener* listener_;
59 scoped_refptr<GpuChannelHost> channel_; 59 scoped_refptr<GpuChannelHost> channel_;
60 base::WeakPtrFactory<StreamTextureHost> weak_ptr_factory_; 60 base::WeakPtrFactory<StreamTextureHost> weak_ptr_factory_;
61 61
62 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureHost); 62 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureHost);
63 }; 63 };
64 64
65 } // namespace content 65 } // namespace content
66 66
67 #endif // CONTENT_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_ 67 #endif // CONTENT_RENDERER_GPU_STREAM_TEXTURE_HOST_ANDROID_H_
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.h ('k') | content/renderer/media/renderer_gpu_video_decoder_factories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698