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

Unified Diff: media/gpu/vt_video_encode_accelerator_mac.cc

Issue 2137453003: mac: Remove IsOSMavericksOrLater() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cfallocator_1012
Patch Set: rebase Created 4 years, 5 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 | « content/browser/web_contents/web_contents_view_mac.mm ('k') | ui/base/cocoa/remote_layer_api.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/vt_video_encode_accelerator_mac.cc
diff --git a/media/gpu/vt_video_encode_accelerator_mac.cc b/media/gpu/vt_video_encode_accelerator_mac.cc
index e38efd117b3e8dd7c473b2d757e0ce6da63f9177..32d1b8ab75e7e29537bd395c55d9e1cb2f8bdd6d 100644
--- a/media/gpu/vt_video_encode_accelerator_mac.cc
+++ b/media/gpu/vt_video_encode_accelerator_mac.cc
@@ -6,7 +6,6 @@
#include <memory>
-#include "base/mac/mac_util.h"
#include "base/threading/thread_task_runner_handle.h"
#include "media/base/mac/coremedia_glue.h"
#include "media/base/mac/corevideo_glue.h"
@@ -106,11 +105,6 @@ VTVideoEncodeAccelerator::GetSupportedProfiles() {
DLOG(ERROR) << "Failed creating VideoToolbox glue.";
return profiles;
}
- if (!base::mac::IsOSMavericksOrLater()) {
- DLOG(ERROR) << "VideoToolbox hardware encoder is supported on Mac OS 10.9 "
- "and later.";
- return profiles;
- }
const bool rv = CreateCompressionSession(
video_toolbox::DictionaryWithKeysAndValues(nullptr, nullptr, 0),
gfx::Size(kDefaultResolutionWidth, kDefaultResolutionHeight), true);
@@ -158,11 +152,6 @@ bool VTVideoEncodeAccelerator::Initialize(VideoPixelFormat format,
DLOG(ERROR) << "Failed creating VideoToolbox glue.";
return false;
}
- if (!base::mac::IsOSMavericksOrLater()) {
- DLOG(ERROR) << "VideoToolbox hardware encoder is supported on Mac OS 10.9 "
- "and later.";
- return false;
- }
client_ptr_factory_.reset(new base::WeakPtrFactory<Client>(client));
client_ = client_ptr_factory_->GetWeakPtr();
« no previous file with comments | « content/browser/web_contents/web_contents_view_mac.mm ('k') | ui/base/cocoa/remote_layer_api.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698