OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |