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

Unified Diff: content/shell/renderer/webkit_test_runner.cc

Issue 23597036: Convert USE(NATIVE_FULLSCREEN_VIDEO) to a runtime enabled feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@build_hack
Patch Set: CONTENT_EXPORT Created 7 years, 3 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/shell/browser/webkit_test_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/webkit_test_runner.cc
diff --git a/content/shell/renderer/webkit_test_runner.cc b/content/shell/renderer/webkit_test_runner.cc
index d93a96784a7eb357197e4624bc00e7962f51f498..69f32cc0a57010c2a06c7b809684654731dec2f3 100644
--- a/content/shell/renderer/webkit_test_runner.cc
+++ b/content/shell/renderer/webkit_test_runner.cc
@@ -9,6 +9,7 @@
#include <cmath>
#include "base/base64.h"
+#include "base/command_line.h"
#include "base/debug/debugger.h"
#include "base/files/file_path.h"
#include "base/md5.h"
@@ -19,6 +20,7 @@
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
+#include "content/public/common/content_switches.h"
#include "content/public/common/url_constants.h"
#include "content/public/renderer/history_item_serialization.h"
#include "content/public/renderer/render_view.h"
@@ -117,7 +119,9 @@ void CopyCanvasToBitmap(SkCanvas* canvas, SkBitmap* snapshot) {
#if !defined(OS_MACOSX)
// Only the expected PNGs for Mac have a valid alpha channel.
- MakeBitmapOpaque(snapshot);
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableOverlayFullscreenVideo))
+ MakeBitmapOpaque(snapshot);
#endif
}
« no previous file with comments | « content/shell/browser/webkit_test_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698