#include "content/public/common/content_switches.h"
#include "content/public/common/gpu_stream_constants.h"
#include "gpu/command_buffer/client/raster_interface.h"
+#include "gpu/config/gpu_switches.h"
#include "gpu/ipc/client/gpu_channel_host.h"
#include "media/base/media_switches.h"
#include "mojo/public/cpp/bindings/associated_remote.h"
worker_context_provider_wrapper_.reset();
}
- const bool enable_gpu_rasterization =
+ bool enable_gpu_rasterization =
features::IsUiGpuRasterizationEnabled() &&
gpu_feature_info
.status_values[gpu::GPU_FEATURE_TYPE_GPU_TILE_RASTERIZATION] ==
gpu::kGpuFeatureStatusEnabled;
+#if BUILDFLAG(IS_TIZEN_TV)
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableGpuRasterization)) {
+ enable_gpu_rasterization = true;
+ }
+#endif
+
if (!worker_context_provider_wrapper_) {
// If the worker context supports GPU rasterization then UI tiles will be
// rasterized on the GPU.
.status_values[gpu::GPU_FEATURE_TYPE_GPU_TILE_RASTERIZATION] ==
gpu::kGpuFeatureStatusEnabled;
+#if BUILDFLAG(IS_TIZEN_TV)
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableGpuRasterization)) {
+ support_gpu_rasterization = true;
+ }
+#endif
+
bool support_gles2_interface = false;
bool support_raster_interface = true;
bool support_grcontext = false;