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

Unified Diff: content/browser/compositor/software_browser_compositor_output_surface.cc

Issue 2399983003: cc: Make OutputSurface::Reshape abstract (Closed)
Patch Set: reshapeabstract: . Created 4 years, 2 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
Index: content/browser/compositor/software_browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/software_browser_compositor_output_surface.cc b/content/browser/compositor/software_browser_compositor_output_surface.cc
index 4e80d5bf99cd1cd354624223db7041102134f3d7..71614e385e943113d7b164e6434bf1a583197050 100644
--- a/content/browser/compositor/software_browser_compositor_output_surface.cc
+++ b/content/browser/compositor/software_browser_compositor_output_surface.cc
@@ -46,6 +46,14 @@ void SoftwareBrowserCompositorOutputSurface::BindFramebuffer() {
NOTREACHED();
}
+void SoftwareBrowserCompositorOutputSurface::Reshape(
+ const gfx::Size& size,
+ float device_scale_factor,
+ const gfx::ColorSpace& color_space,
+ bool has_alpha) {
+ software_device()->Resize(size, device_scale_factor);
+}
+
void SoftwareBrowserCompositorOutputSurface::SwapBuffers(
cc::OutputSurfaceFrame frame) {
base::TimeTicks swap_time = base::TimeTicks::Now();

Powered by Google App Engine
This is Rietveld 408576698