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

Side by Side Diff: content/common/gpu/gpu_video_service.cc

Issue 6793054: Moved code that runs in both the browser and GPU process from content/gpu to content/common/gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 #include "content/common/gpu/gpu_channel.h"
6 #include "content/common/gpu/gpu_video_decoder.h"
7 #include "content/common/gpu/gpu_video_service.h"
5 #include "content/common/gpu_messages.h" 8 #include "content/common/gpu_messages.h"
6 #include "content/gpu/gpu_channel.h"
7 #include "content/gpu/gpu_video_decoder.h"
8 #include "content/gpu/gpu_video_service.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 | « content/common/gpu/gpu_video_service.h ('k') | content/common/gpu/media/fake_gl_video_decode_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698