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

Unified Diff: chrome/gpu/gpu_video_service.cc

Issue 6684015: Move chrome\gpu to content\gpu. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/gpu/gpu_video_service.h ('k') | chrome/gpu/gpu_watchdog_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_video_service.cc
===================================================================
--- chrome/gpu/gpu_video_service.cc (revision 77878)
+++ chrome/gpu/gpu_video_service.cc (working copy)
@@ -1,82 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/gpu/gpu_channel.h"
-#include "chrome/gpu/gpu_video_decoder.h"
-#include "chrome/gpu/gpu_video_service.h"
-#include "content/common/gpu_messages.h"
-
-struct GpuVideoService::GpuVideoDecoderInfo {
- scoped_refptr<GpuVideoDecoder> decoder;
- GpuChannel* channel;
-};
-
-
-GpuVideoService::GpuVideoService() {
- // TODO(jiesun): move this time consuming stuff out of here.
- IntializeGpuVideoService();
-}
-
-GpuVideoService::~GpuVideoService() {
- // TODO(jiesun): move this time consuming stuff out of here.
- UnintializeGpuVideoService();
-}
-
-// static
-GpuVideoService* GpuVideoService::GetInstance() {
- return Singleton<GpuVideoService>::get();
-}
-
-void GpuVideoService::OnChannelConnected(int32 peer_pid) {
- LOG(ERROR) << "GpuVideoService::OnChannelConnected";
-}
-
-void GpuVideoService::OnChannelError() {
- LOG(ERROR) << "GpuVideoService::OnChannelError";
-}
-
-bool GpuVideoService::OnMessageReceived(const IPC::Message& msg) {
-#if 0
- IPC_BEGIN_MESSAGE_MAP(GpuVideoService, msg)
- IPC_MESSAGE_UNHANDLED_ERROR()
- IPC_END_MESSAGE_MAP()
-#endif
- return false;
-}
-
-bool GpuVideoService::IntializeGpuVideoService() {
- return true;
-}
-
-bool GpuVideoService::UnintializeGpuVideoService() {
- return true;
-}
-
-bool GpuVideoService::CreateVideoDecoder(
- GpuChannel* channel,
- MessageRouter* router,
- int32 decoder_host_id,
- int32 decoder_id,
- gpu::gles2::GLES2Decoder* gles2_decoder) {
- GpuVideoDecoderInfo decoder_info;
- decoder_info.decoder = new GpuVideoDecoder(MessageLoop::current(),
- decoder_host_id,
- channel,
- channel->renderer_process(),
- gles2_decoder);
- decoder_info.channel = channel;
- decoder_map_[decoder_id] = decoder_info;
- router->AddRoute(decoder_id, decoder_info.decoder);
-
- channel->Send(new GpuVideoDecoderHostMsg_CreateVideoDecoderDone(
- decoder_host_id, decoder_id));
- return true;
-}
-
-void GpuVideoService::DestroyVideoDecoder(
- MessageRouter* router,
- int32 decoder_id) {
- router->RemoveRoute(decoder_id);
- decoder_map_.erase(decoder_id);
-}
« no previous file with comments | « chrome/gpu/gpu_video_service.h ('k') | chrome/gpu/gpu_watchdog_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698