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

Unified Diff: cc/surfaces/display.h

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index 2346a40d3178dae6b0220af27dd0bcab5d5689d5..5f80d64371dd32be7e26035c845b7c90fbd26906 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -46,7 +46,12 @@ class CC_SURFACES_EXPORT Display : public OutputSurfaceClient,
~Display() override;
bool Initialize(scoped_ptr<OutputSurface> output_surface);
- void Resize(SurfaceId id, const gfx::Size& new_size);
+
+ // device_scale_factor is used to communicate to the external window system
+ // what scale this was rendered at.
+ void Resize(SurfaceId id,
+ const gfx::Size& new_size,
+ float device_scale_factor);
bool Draw();
SurfaceId CurrentSurfaceId();
@@ -88,6 +93,7 @@ class CC_SURFACES_EXPORT Display : public OutputSurfaceClient,
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
SurfaceId current_surface_id_;
gfx::Size current_surface_size_;
+ float device_scale_factor_;
LayerTreeSettings settings_;
scoped_ptr<OutputSurface> output_surface_;
scoped_ptr<ResourceProvider> resource_provider_;
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698