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

Side by Side Diff: chrome/gpu/gpu_video_service.cc

Issue 6673003: Move GPU messages to content. I've also switched the IPC structs to use the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « chrome/gpu/gpu_video_decoder_unittest.cc ('k') | chrome/renderer/command_buffer_proxy.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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/gpu/gpu_video_decoder_unittest.cc ('k') | chrome/renderer/command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698