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

Unified Diff: cc/output/direct_renderer.cc

Issue 2254543003: cc: Delete the RendererClient class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setvisible-browser
Patch Set: deleterendererclient: rebase Created 4 years, 4 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 | « cc/output/direct_renderer.h ('k') | cc/output/gl_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index ab2689fb01121318058891166f99dbf7b2898f58..93d3fe34d6542fe1fa30cb7bb4675ec8def13f9b 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -128,11 +128,10 @@ gfx::Rect DirectRenderer::MoveFromDrawToWindowSpace(
return window_rect;
}
-DirectRenderer::DirectRenderer(RendererClient* client,
- const RendererSettings* settings,
+DirectRenderer::DirectRenderer(const RendererSettings* settings,
OutputSurface* output_surface,
ResourceProvider* resource_provider)
- : Renderer(client, settings),
+ : Renderer(settings),
output_surface_(output_surface),
resource_provider_(resource_provider),
overlay_processor_(new OverlayProcessor(output_surface)) {
@@ -219,8 +218,6 @@ void DirectRenderer::DrawFrame(RenderPassList* render_passes_in_draw_order,
frame.device_viewport_rect = device_viewport_rect;
frame.device_clip_rect = device_clip_rect;
- EnsureBackbuffer();
-
// Only reshape when we know we are going to draw. Otherwise, the reshape
// can leave the window at the wrong size if we never draw and the proper
// viewport size is never set.
« no previous file with comments | « cc/output/direct_renderer.h ('k') | cc/output/gl_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698