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

Unified Diff: ui/compositor/layer.h

Issue 2575503003: Getting rid of frame_size_in_dip in Layer::SetShowSurface (Closed)
Patch Set: x Created 4 years 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 | « content/browser/renderer_host/delegated_frame_host.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 4bb77d315bdc7e96014a88a6b7a7e7e874c27ae5..6bce25e37769afff29245d6bb8084161c5857c97 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -296,9 +296,8 @@ class COMPOSITOR_EXPORT Layer
void SetShowSurface(const cc::SurfaceId& surface_id,
const cc::SurfaceLayer::SatisfyCallback& satisfy_callback,
const cc::SurfaceLayer::RequireCallback& require_callback,
- gfx::Size surface_size,
- float scale,
- gfx::Size frame_size_in_dip);
+ const gfx::Size& surface_size_in_pixels,
+ float scale);
bool has_external_content() {
return texture_layer_.get() || surface_layer_.get();
@@ -388,6 +387,10 @@ class COMPOSITOR_EXPORT Layer
return damaged_region_;
}
+ const gfx::Size& frame_size_in_dip_for_testing() const {
+ return frame_size_in_dip_;
+ }
+
private:
friend class LayerOwner;
class LayerMirror;
« no previous file with comments | « content/browser/renderer_host/delegated_frame_host.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698