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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 890873007: Cleanup: Move ContextProviderWebContext into cc/blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « content/renderer/pepper/video_decoder_shim.cc ('k') | content/renderer/render_thread_impl.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 #if defined(OS_ANDROID) 150 #if defined(OS_ANDROID)
151 #include <cpu-features.h> 151 #include <cpu-features.h>
152 152
153 #include "content/common/gpu/client/context_provider_command_buffer.h" 153 #include "content/common/gpu/client/context_provider_command_buffer.h"
154 #include "content/renderer/android/synchronous_compositor_factory.h" 154 #include "content/renderer/android/synchronous_compositor_factory.h"
155 #include "content/renderer/java/gin_java_bridge_dispatcher.h" 155 #include "content/renderer/java/gin_java_bridge_dispatcher.h"
156 #include "content/renderer/media/android/renderer_media_player_manager.h" 156 #include "content/renderer/media/android/renderer_media_player_manager.h"
157 #include "content/renderer/media/android/stream_texture_factory_impl.h" 157 #include "content/renderer/media/android/stream_texture_factory_impl.h"
158 #include "content/renderer/media/android/webmediaplayer_android.h" 158 #include "content/renderer/media/android/webmediaplayer_android.h"
159 #else 159 #else
160 #include "webkit/common/gpu/context_provider_web_context.h" 160 #include "cc/blink/context_provider_web_context.h"
161 #endif 161 #endif
162 162
163 #if defined(ENABLE_PEPPER_CDMS) 163 #if defined(ENABLE_PEPPER_CDMS)
164 #include "content/renderer/media/crypto/pepper_cdm_wrapper_impl.h" 164 #include "content/renderer/media/crypto/pepper_cdm_wrapper_impl.h"
165 #elif defined(ENABLE_BROWSER_CDMS) 165 #elif defined(ENABLE_BROWSER_CDMS)
166 #include "content/renderer/media/crypto/renderer_cdm_manager.h" 166 #include "content/renderer/media/crypto/renderer_cdm_manager.h"
167 #endif 167 #endif
168 168
169 #if defined(ENABLE_MEDIA_MOJO_RENDERER) 169 #if defined(ENABLE_MEDIA_MOJO_RENDERER)
170 #include "content/renderer/media/media_renderer_service_provider.h" 170 #include "content/renderer/media/media_renderer_service_provider.h"
(...skipping 4257 matching lines...) Expand 10 before | Expand all | Expand 10 after
4428 if (!gpu_channel_host) { 4428 if (!gpu_channel_host) {
4429 LOG(ERROR) << "Failed to establish GPU channel for media player"; 4429 LOG(ERROR) << "Failed to establish GPU channel for media player";
4430 return NULL; 4430 return NULL;
4431 } 4431 }
4432 4432
4433 scoped_refptr<StreamTextureFactory> stream_texture_factory; 4433 scoped_refptr<StreamTextureFactory> stream_texture_factory;
4434 if (SynchronousCompositorFactory* factory = 4434 if (SynchronousCompositorFactory* factory =
4435 SynchronousCompositorFactory::GetInstance()) { 4435 SynchronousCompositorFactory::GetInstance()) {
4436 stream_texture_factory = factory->CreateStreamTextureFactory(routing_id_); 4436 stream_texture_factory = factory->CreateStreamTextureFactory(routing_id_);
4437 } else { 4437 } else {
4438 scoped_refptr<webkit::gpu::ContextProviderWebContext> context_provider = 4438 scoped_refptr<cc_blink::ContextProviderWebContext> context_provider =
4439 RenderThreadImpl::current()->SharedMainThreadContextProvider(); 4439 RenderThreadImpl::current()->SharedMainThreadContextProvider();
4440 4440
4441 if (!context_provider.get()) { 4441 if (!context_provider.get()) {
4442 LOG(ERROR) << "Failed to get context3d for media player"; 4442 LOG(ERROR) << "Failed to get context3d for media player";
4443 return NULL; 4443 return NULL;
4444 } 4444 }
4445 4445
4446 stream_texture_factory = StreamTextureFactoryImpl::Create( 4446 stream_texture_factory = StreamTextureFactoryImpl::Create(
4447 context_provider, gpu_channel_host, routing_id_); 4447 context_provider, gpu_channel_host, routing_id_);
4448 } 4448 }
(...skipping 20 matching lines...) Expand all
4469 4469
4470 #if defined(ENABLE_BROWSER_CDMS) 4470 #if defined(ENABLE_BROWSER_CDMS)
4471 RendererCdmManager* RenderFrameImpl::GetCdmManager() { 4471 RendererCdmManager* RenderFrameImpl::GetCdmManager() {
4472 if (!cdm_manager_) 4472 if (!cdm_manager_)
4473 cdm_manager_ = new RendererCdmManager(this); 4473 cdm_manager_ = new RendererCdmManager(this);
4474 return cdm_manager_; 4474 return cdm_manager_;
4475 } 4475 }
4476 #endif // defined(ENABLE_BROWSER_CDMS) 4476 #endif // defined(ENABLE_BROWSER_CDMS)
4477 4477
4478 } // namespace content 4478 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/video_decoder_shim.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698