OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
210 | 210 |
211 #if defined(OS_ANDROID) | 211 #if defined(OS_ANDROID) |
212 #include <cpu-features.h> | 212 #include <cpu-features.h> |
213 | 213 |
214 #include "content/common/android/device_telephony_info.h" | 214 #include "content/common/android/device_telephony_info.h" |
215 #include "content/common/gpu/client/context_provider_command_buffer.h" | 215 #include "content/common/gpu/client/context_provider_command_buffer.h" |
216 #include "content/renderer/android/address_detector.h" | 216 #include "content/renderer/android/address_detector.h" |
217 #include "content/renderer/android/content_detector.h" | 217 #include "content/renderer/android/content_detector.h" |
218 #include "content/renderer/android/email_detector.h" | 218 #include "content/renderer/android/email_detector.h" |
219 #include "content/renderer/android/phone_number_detector.h" | 219 #include "content/renderer/android/phone_number_detector.h" |
220 #include "content/renderer/android/synchronous_compositor_factory.h" | |
220 #include "content/renderer/media/android/renderer_media_player_manager.h" | 221 #include "content/renderer/media/android/renderer_media_player_manager.h" |
221 #include "content/renderer/media/android/stream_texture_factory_android_impl.h" | 222 #include "content/renderer/media/android/stream_texture_factory_android_impl.h" |
222 #include "content/renderer/media/android/stream_texture_factory_android_synchron ous_impl.h" | |
223 #include "content/renderer/media/android/webmediaplayer_android.h" | 223 #include "content/renderer/media/android/webmediaplayer_android.h" |
224 #include "content/renderer/media/android/webmediaplayer_proxy_android.h" | 224 #include "content/renderer/media/android/webmediaplayer_proxy_android.h" |
225 #include "skia/ext/platform_canvas.h" | 225 #include "skia/ext/platform_canvas.h" |
226 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 226 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
227 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 227 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
228 #include "third_party/WebKit/public/web/WebHitTestResult.h" | 228 #include "third_party/WebKit/public/web/WebHitTestResult.h" |
229 #include "ui/gfx/rect_f.h" | 229 #include "ui/gfx/rect_f.h" |
230 | 230 |
231 #if defined(GOOGLE_TV) | 231 #if defined(GOOGLE_TV) |
232 #include "content/renderer/media/rtc_video_decoder_bridge_tv.h" | 232 #include "content/renderer/media/rtc_video_decoder_bridge_tv.h" |
(...skipping 2788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3021 return NULL; | 3021 return NULL; |
3022 } | 3022 } |
3023 | 3023 |
3024 if (!media_player_proxy_) { | 3024 if (!media_player_proxy_) { |
3025 media_player_proxy_ = new WebMediaPlayerProxyAndroid( | 3025 media_player_proxy_ = new WebMediaPlayerProxyAndroid( |
3026 this, media_player_manager_.get()); | 3026 this, media_player_manager_.get()); |
3027 } | 3027 } |
3028 | 3028 |
3029 scoped_ptr<StreamTextureFactory> stream_texture_factory; | 3029 scoped_ptr<StreamTextureFactory> stream_texture_factory; |
3030 if (UsingSynchronousRendererCompositor()) { | 3030 if (UsingSynchronousRendererCompositor()) { |
3031 stream_texture_factory.reset(new StreamTextureFactorySynchronousImpl); | 3031 if (SynchronousCompositorFactory* factory = |
boliu
2013/08/20 21:33:49
This is a redundant check. UsingSynchronousRendere
no sievers
2013/08/20 21:59:58
Done. The whole section here is already ifdef ANDR
| |
3032 SynchronousCompositorFactory::GetInstance()) { | |
3033 stream_texture_factory = factory->CreateStreamTextureFactory(routing_id_); | |
3034 } | |
3032 } else { | 3035 } else { |
3033 stream_texture_factory.reset(new StreamTextureFactoryImpl( | 3036 stream_texture_factory.reset(new StreamTextureFactoryImpl( |
3034 context_provider->Context3d(), gpu_channel_host, routing_id_)); | 3037 context_provider->Context3d(), gpu_channel_host, routing_id_)); |
3035 } | 3038 } |
3036 | 3039 |
3037 scoped_ptr<WebMediaPlayerAndroid> web_media_player_android( | 3040 scoped_ptr<WebMediaPlayerAndroid> web_media_player_android( |
3038 new WebMediaPlayerAndroid( | 3041 new WebMediaPlayerAndroid( |
3039 frame, | 3042 frame, |
3040 client, | 3043 client, |
3041 AsWeakPtr(), | 3044 AsWeakPtr(), |
(...skipping 3514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6556 WebURL url = icon_urls[i].iconURL(); | 6559 WebURL url = icon_urls[i].iconURL(); |
6557 if (!url.isEmpty()) | 6560 if (!url.isEmpty()) |
6558 urls.push_back(FaviconURL(url, | 6561 urls.push_back(FaviconURL(url, |
6559 ToFaviconType(icon_urls[i].iconType()))); | 6562 ToFaviconType(icon_urls[i].iconType()))); |
6560 } | 6563 } |
6561 SendUpdateFaviconURL(urls); | 6564 SendUpdateFaviconURL(urls); |
6562 } | 6565 } |
6563 | 6566 |
6564 | 6567 |
6565 } // namespace content | 6568 } // namespace content |
OLD | NEW |