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

Unified Diff: android_webview/browser/surfaces_instance.cc

Issue 2905523003: Revert of Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Created 3 years, 7 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 | « android_webview/browser/hardware_renderer.cc ('k') | android_webview/browser/test/rendering_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/surfaces_instance.cc
diff --git a/android_webview/browser/surfaces_instance.cc b/android_webview/browser/surfaces_instance.cc
index f89c1dc72221f2d04afb138705de3a48cdc28467..b8599fe91175b5e7f1707cb68f7d8cf789bf212a 100644
--- a/android_webview/browser/surfaces_instance.cc
+++ b/android_webview/browser/surfaces_instance.cc
@@ -139,7 +139,6 @@
frame.metadata.begin_frame_ack =
cc::BeginFrameAck::CreateManualAckWithDamage();
frame.render_pass_list.push_back(std::move(render_pass));
- frame.metadata.device_scale_factor = 1.f;
frame.metadata.referenced_surfaces = child_ids_;
if (!root_id_.is_valid() || frame_size != surface_size_) {
@@ -147,8 +146,7 @@
surface_size_ = frame_size;
display_->SetLocalSurfaceId(root_id_, 1.f);
}
- bool result = support_->SubmitCompositorFrame(root_id_, std::move(frame));
- DCHECK(result);
+ support_->SubmitCompositorFrame(root_id_, std::move(frame));
display_->Resize(viewport);
display_->DrawAndSwap();
@@ -188,9 +186,7 @@
frame.metadata.begin_frame_ack =
cc::BeginFrameAck::CreateManualAckWithDamage();
frame.metadata.referenced_surfaces = child_ids_;
- frame.metadata.device_scale_factor = 1;
- bool result = support_->SubmitCompositorFrame(root_id_, std::move(frame));
- DCHECK(result);
+ support_->SubmitCompositorFrame(root_id_, std::move(frame));
}
void SurfacesInstance::DidReceiveCompositorFrameAck(
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | android_webview/browser/test/rendering_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698