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

Unified Diff: ui/aura/local/compositor_frame_sink_local.h

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Notify CFSSClient when a frame is rejected Created 3 years, 7 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: ui/aura/local/compositor_frame_sink_local.h
diff --git a/ui/aura/local/compositor_frame_sink_local.h b/ui/aura/local/compositor_frame_sink_local.h
index 65afe361958dc798b882c6308c7e782cebb15715..c093c1afbbcd39f3a2b55a0532394c1753bd2c93 100644
--- a/ui/aura/local/compositor_frame_sink_local.h
+++ b/ui/aura/local/compositor_frame_sink_local.h
@@ -51,6 +51,7 @@ class CompositorFrameSinkLocal : public cc::CompositorFrameSink,
void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
const gfx::Rect& damage_rect) override {}
+ void DidRejectCompositorFrame() override;
// cc::ExternalBeginFrameSourceClient:
void OnNeedsBeginFrames(bool needs_begin_frames) override;
@@ -60,7 +61,8 @@ class CompositorFrameSinkLocal : public cc::CompositorFrameSink,
const cc::FrameSinkId frame_sink_id_;
cc::SurfaceManager* const surface_manager_;
std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
- gfx::Size last_submitted_frame_size_;
+ gfx::Size surface_size_;
+ float device_scale_factor_ = 0;
cc::LocalSurfaceIdAllocator id_allocator_;
cc::LocalSurfaceId local_surface_id_;
std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_;

Powered by Google App Engine
This is Rietveld 408576698