| OLD | NEW |
| 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/media/android/webmediaplayer_android.h" | 5 #include "content/renderer/media/android/webmediaplayer_android.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "media/blink/webmediaplayer_util.h" | 50 #include "media/blink/webmediaplayer_util.h" |
| 51 #include "net/base/mime_util.h" | 51 #include "net/base/mime_util.h" |
| 52 #include "skia/ext/texture_handle.h" | 52 #include "skia/ext/texture_handle.h" |
| 53 #include "third_party/WebKit/public/platform/Platform.h" | 53 #include "third_party/WebKit/public/platform/Platform.h" |
| 54 #include "third_party/WebKit/public/platform/URLConversion.h" | 54 #include "third_party/WebKit/public/platform/URLConversion.h" |
| 55 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" | 55 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" |
| 56 #include "third_party/WebKit/public/platform/WebEncryptedMediaTypes.h" | 56 #include "third_party/WebKit/public/platform/WebEncryptedMediaTypes.h" |
| 57 #include "third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h" | 57 #include "third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h" |
| 58 #include "third_party/WebKit/public/platform/WebMediaPlayerClient.h" | 58 #include "third_party/WebKit/public/platform/WebMediaPlayerClient.h" |
| 59 #include "third_party/WebKit/public/platform/WebMediaPlayerEncryptedMediaClient.
h" | 59 #include "third_party/WebKit/public/platform/WebMediaPlayerEncryptedMediaClient.
h" |
| 60 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h" |
| 60 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 61 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
| 61 #include "third_party/WebKit/public/platform/WebString.h" | 62 #include "third_party/WebKit/public/platform/WebString.h" |
| 62 #include "third_party/WebKit/public/platform/WebURL.h" | 63 #include "third_party/WebKit/public/platform/WebURL.h" |
| 63 #include "third_party/WebKit/public/web/WebDocument.h" | 64 #include "third_party/WebKit/public/web/WebDocument.h" |
| 64 #include "third_party/WebKit/public/web/WebFrame.h" | 65 #include "third_party/WebKit/public/web/WebFrame.h" |
| 65 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | |
| 66 #include "third_party/WebKit/public/web/WebView.h" | 66 #include "third_party/WebKit/public/web/WebView.h" |
| 67 #include "third_party/skia/include/core/SkCanvas.h" | 67 #include "third_party/skia/include/core/SkCanvas.h" |
| 68 #include "third_party/skia/include/core/SkPaint.h" | 68 #include "third_party/skia/include/core/SkPaint.h" |
| 69 #include "third_party/skia/include/core/SkTypeface.h" | 69 #include "third_party/skia/include/core/SkTypeface.h" |
| 70 #include "third_party/skia/include/gpu/GrContext.h" | 70 #include "third_party/skia/include/gpu/GrContext.h" |
| 71 #include "third_party/skia/include/gpu/SkGrPixelRef.h" | 71 #include "third_party/skia/include/gpu/SkGrPixelRef.h" |
| 72 #include "ui/gfx/image/image.h" | 72 #include "ui/gfx/image/image.h" |
| 73 | 73 |
| 74 static const uint32_t kGLTextureExternalOES = 0x8D65; | 74 static const uint32_t kGLTextureExternalOES = 0x8D65; |
| 75 static const int kSDKVersionToSupportSecurityOriginCheck = 20; | 75 static const int kSDKVersionToSupportSecurityOriginCheck = 20; |
| (...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1664 result = PREDICTION_RESULT_PATH_BASED_WAS_BETTER; | 1664 result = PREDICTION_RESULT_PATH_BASED_WAS_BETTER; |
| 1665 } else if (is_hls_url == is_hls) { | 1665 } else if (is_hls_url == is_hls) { |
| 1666 result = PREDICTION_RESULT_URL_BASED_WAS_BETTER; | 1666 result = PREDICTION_RESULT_URL_BASED_WAS_BETTER; |
| 1667 } | 1667 } |
| 1668 UMA_HISTOGRAM_ENUMERATION( | 1668 UMA_HISTOGRAM_ENUMERATION( |
| 1669 "Media.Android.IsHttpLiveStreamingMediaPredictionResult", | 1669 "Media.Android.IsHttpLiveStreamingMediaPredictionResult", |
| 1670 result, PREDICTION_RESULT_MAX); | 1670 result, PREDICTION_RESULT_MAX); |
| 1671 } | 1671 } |
| 1672 | 1672 |
| 1673 } // namespace content | 1673 } // namespace content |
| OLD | NEW |