diff options
-rw-r--r-- | libs/hwui/pipeline/skia/VkFunctorDrawable.cpp | 1 | ||||
-rw-r--r-- | libs/hwui/private/hwui/DrawVkInfo.h | 3 | ||||
-rw-r--r-- | native/webview/plat_support/draw_fn.h | 22 | ||||
-rw-r--r-- | native/webview/plat_support/draw_functor.cpp | 4 |
4 files changed, 5 insertions, 25 deletions
diff --git a/libs/hwui/pipeline/skia/VkFunctorDrawable.cpp b/libs/hwui/pipeline/skia/VkFunctorDrawable.cpp index fe2d41ef630b..ceab407cb939 100644 --- a/libs/hwui/pipeline/skia/VkFunctorDrawable.cpp +++ b/libs/hwui/pipeline/skia/VkFunctorDrawable.cpp @@ -65,7 +65,6 @@ void VkFunctorDrawHandler::draw(const GrBackendDrawableInfo& info) { VkFunctorDrawParams params{ .width = mImageInfo.width(), .height = mImageInfo.height(), - .is_layer = false, // TODO(boliu): Populate is_layer. .color_space_ptr = mImageInfo.colorSpace(), .clip_left = mClip.fLeft, .clip_top = mClip.fTop, diff --git a/libs/hwui/private/hwui/DrawVkInfo.h b/libs/hwui/private/hwui/DrawVkInfo.h index fb55f5ca4c93..4ae0f5a0a2e5 100644 --- a/libs/hwui/private/hwui/DrawVkInfo.h +++ b/libs/hwui/private/hwui/DrawVkInfo.h @@ -42,9 +42,6 @@ struct VkFunctorDrawParams { int width; int height; - // Input: is the render target a FBO - bool is_layer; - // Input: current transform matrix float transform[16]; diff --git a/native/webview/plat_support/draw_fn.h b/native/webview/plat_support/draw_fn.h index 5b3e496be81a..42cad43af8fc 100644 --- a/native/webview/plat_support/draw_fn.h +++ b/native/webview/plat_support/draw_fn.h @@ -44,23 +44,8 @@ struct AwDrawFn_DrawGLParams { int width; int height; - // Input: is the View rendered into an independent layer. - // If false, the surface is likely to hold to the full screen contents, with - // the scissor box set by the caller to the actual View location and size. - // Also the transformation matrix will contain at least a translation to the - // position of the View to render, plus any other transformations required as - // part of any ongoing View animation. View translucency (alpha) is ignored, - // although the framework will set is_layer to true for non-opaque cases. - // Can be requested via the View.setLayerType(View.LAYER_TYPE_NONE, ...) - // Android API method. - // - // If true, the surface is dedicated to the View and should have its size. - // The viewport and scissor box are set by the caller to the whole surface. - // Animation transformations are handled by the caller and not reflected in - // the provided transformation matrix. Translucency works normally. - // Can be requested via the View.setLayerType(View.LAYER_TYPE_HARDWARE, ...) - // Android API method. - bool is_layer; + // Used to be is_layer. + bool deprecated_0; // Input: current transformation matrix in surface pixels. // Uses the column-based OpenGL matrix format. @@ -102,8 +87,7 @@ struct AwDrawFn_DrawVkParams { int width; int height; - // Input: is the render target a FBO - bool is_layer; + bool deprecated_0; // Input: current transform matrix float transform[16]; diff --git a/native/webview/plat_support/draw_functor.cpp b/native/webview/plat_support/draw_functor.cpp index e43a60c3f396..7cce61b87d12 100644 --- a/native/webview/plat_support/draw_functor.cpp +++ b/native/webview/plat_support/draw_functor.cpp @@ -65,7 +65,7 @@ void draw_gl(int functor, void* data, .clip_bottom = draw_gl_params.clipBottom, .width = draw_gl_params.width, .height = draw_gl_params.height, - .is_layer = draw_gl_params.isLayer, + .deprecated_0 = false, .transfer_function_g = gabcdef[0], .transfer_function_a = gabcdef[1], .transfer_function_b = gabcdef[2], @@ -126,7 +126,7 @@ void drawVk(int functor, void* data, const uirenderer::VkFunctorDrawParams& draw .version = kAwDrawFnVersion, .width = draw_vk_params.width, .height = draw_vk_params.height, - .is_layer = draw_vk_params.is_layer, + .deprecated_0 = false, .secondary_command_buffer = draw_vk_params.secondary_command_buffer, .color_attachment_index = draw_vk_params.color_attachment_index, .compatible_render_pass = draw_vk_params.compatible_render_pass, |