OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/common/gpu_messages.h" | |
6 #include "chrome/gpu/gpu_channel.h" | 5 #include "chrome/gpu/gpu_channel.h" |
7 #include "chrome/gpu/gpu_video_decoder.h" | 6 #include "chrome/gpu/gpu_video_decoder.h" |
8 #include "chrome/gpu/gpu_video_service.h" | 7 #include "chrome/gpu/gpu_video_service.h" |
| 8 #include "content/common/gpu_messages.h" |
9 | 9 |
10 struct GpuVideoService::GpuVideoDecoderInfo { | 10 struct GpuVideoService::GpuVideoDecoderInfo { |
11 scoped_refptr<GpuVideoDecoder> decoder; | 11 scoped_refptr<GpuVideoDecoder> decoder; |
12 GpuChannel* channel; | 12 GpuChannel* channel; |
13 }; | 13 }; |
14 | 14 |
15 | 15 |
16 GpuVideoService::GpuVideoService() { | 16 GpuVideoService::GpuVideoService() { |
17 // TODO(jiesun): move this time consuming stuff out of here. | 17 // TODO(jiesun): move this time consuming stuff out of here. |
18 IntializeGpuVideoService(); | 18 IntializeGpuVideoService(); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 decoder_host_id, decoder_id)); | 73 decoder_host_id, decoder_id)); |
74 return true; | 74 return true; |
75 } | 75 } |
76 | 76 |
77 void GpuVideoService::DestroyVideoDecoder( | 77 void GpuVideoService::DestroyVideoDecoder( |
78 MessageRouter* router, | 78 MessageRouter* router, |
79 int32 decoder_id) { | 79 int32 decoder_id) { |
80 router->RemoveRoute(decoder_id); | 80 router->RemoveRoute(decoder_id); |
81 decoder_map_.erase(decoder_id); | 81 decoder_map_.erase(decoder_id); |
82 } | 82 } |
OLD | NEW |