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

Unified Diff: android_webview/browser/hardware_renderer.cc

Issue 2485473003: Remove SurfaceFactory::Create and SurfaceFactory::Destroy (Closed)
Patch Set: up Created 4 years, 1 month 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 | « no previous file | android_webview/browser/surfaces_instance.cc » ('j') | cc/surfaces/surface_factory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/hardware_renderer.cc
diff --git a/android_webview/browser/hardware_renderer.cc b/android_webview/browser/hardware_renderer.cc
index 8befffea009eba39186cf896c24cb6d70273ea75..02b323fb0f9fc29ae0e4893665285623c8e87ca3 100644
--- a/android_webview/browser/hardware_renderer.cc
+++ b/android_webview/browser/hardware_renderer.cc
@@ -150,7 +150,6 @@ void HardwareRenderer::DrawGL(AwDrawGLInfo* draw_info) {
void HardwareRenderer::AllocateSurface() {
DCHECK(child_id_.is_null());
child_id_ = surface_id_allocator_->GenerateId();
- surface_factory_->Create(child_id_);
surfaces_->AddChildId(cc::SurfaceId(frame_sink_id_, child_id_));
}
@@ -162,7 +161,6 @@ void HardwareRenderer::DestroySurface() {
cc::SurfaceFactory::DrawCallback());
surfaces_->RemoveChildId(cc::SurfaceId(frame_sink_id_, child_id_));
- surface_factory_->Destroy(child_id_);
child_id_ = cc::LocalFrameId();
}
« no previous file with comments | « no previous file | android_webview/browser/surfaces_instance.cc » ('j') | cc/surfaces/surface_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698