#include "third_party/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h"
#include "third_party/skia/include/gpu/gl/GrGLTypes.h"
+#if BUILDFLAG(IS_TIZEN)
+#define DISABLE_2D_CANVAS_AUTO_FLUSH
+#endif
+
namespace blink {
class FlushForImageListener {
const auto props = GetSkSurfaceProps();
if (is_accelerated_) {
+ int msaa_sample_count = 0;
+#if BUILDFLAG(IS_TIZEN)
+ msaa_sample_count = 4;
+#endif
return SkSurfaces::WrapBackendTexture(
GetGrContext(), CreateGrTextureForResource(), GetGrSurfaceOrigin(),
- 0 /* msaa_sample_count */, GetSkImageInfo().colorType(),
+ msaa_sample_count, GetSkImageInfo().colorType(),
GetSkImageInfo().refColorSpace(), &props);
}
return;
cc::SkiaPaintCanvas::ContextFlushes context_flushes;
+
+#if !defined(DISABLE_2D_CANVAS_AUTO_FLUSH)
if (IsAccelerated() && ContextProviderWrapper() &&
!ContextProviderWrapper()
->ContextProvider()
context_flushes.enable = true;
context_flushes.max_draws_before_flush = kMaxDrawsBeforeContextFlush;
}
+#endif
skia_canvas_ = std::make_unique<cc::SkiaPaintCanvas>(
GetSkSurface()->getCanvas(), GetOrCreateCanvasImageProvider(),
context_flushes);
"500");
}
#if !defined(EWK_BRINGUP)
- p_command_line->AppendSwitchASCII(
- switches::kAcceleratedCanvas2dMSAASampleCount, "4");
p_command_line->AppendSwitch(switches::kEnableGestureTapHighlight);
p_command_line->AppendSwitch(switches::kEnableSpatialNavigation);
p_command_line->AppendSwitch(switches::kMainFrameResizesAreOrientationChanges);