Commit 61d77394 authored by Bo Liu's avatar Bo Liu Committed by Commit Bot

viz: Remove SkiaRenderer::non_root_surface_

It is no longer used.

Change-Id: I68735071659060751fb5fa0e2634dc042e5f1b05
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1637643Reviewed-by: default avatarPeng Huang <penghuang@chromium.org>
Commit-Queue: Bo <boliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#665105}
parent 12a7b706
......@@ -487,7 +487,7 @@ SkiaRenderer::ScopedSkImageBuilder::ScopedSkImageBuilder(
if (!resource_id)
return;
auto* resource_provider = skia_renderer->resource_provider_;
if (!skia_renderer->is_using_ddl() || skia_renderer->non_root_surface_ ||
if (!skia_renderer->is_using_ddl() ||
!IsTextureResource(resource_provider, resource_id)) {
// TODO(penghuang): remove this code when DDL is used everywhere.
lock_.emplace(resource_provider, resource_id, alpha_type, origin);
......@@ -680,7 +680,6 @@ void SkiaRenderer::FinishDrawingFrame() {
if (sync_queries_) {
sync_queries_->EndCurrentFrame();
}
non_root_surface_ = nullptr;
current_canvas_ = nullptr;
current_surface_ = nullptr;
......@@ -743,7 +742,6 @@ void SkiaRenderer::EnsureScissorTestDisabled() {
void SkiaRenderer::BindFramebufferToOutputSurface() {
DCHECK(!output_surface_->HasExternalStencilTest());
non_root_surface_ = nullptr;
switch (draw_mode_) {
case DrawMode::DDL: {
......@@ -789,7 +787,6 @@ void SkiaRenderer::BindFramebufferToTexture(const RenderPassId render_pass_id) {
RenderPassBacking& backing = iter->second;
switch (draw_mode_) {
case DrawMode::DDL: {
non_root_surface_ = nullptr;
current_canvas_ = skia_output_surface_->BeginPaintRenderPass(
render_pass_id, backing.size, backing.format, backing.generate_mipmap,
backing.color_space.ToSkColorSpace());
......
......@@ -201,7 +201,6 @@ class VIZ_SERVICE_EXPORT SkiaRenderer : public DirectRenderer {
// Interface used for drawing. Common among different draw modes.
sk_sp<SkSurface> root_surface_;
sk_sp<SkSurface> non_root_surface_;
SkCanvas* root_canvas_ = nullptr;
SkCanvas* current_canvas_ = nullptr;
SkSurface* current_surface_ = nullptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment