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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 159 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
160 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; 160 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
161 161
162 // cc::CompositorFrameSinkSupportClient implementation. 162 // cc::CompositorFrameSinkSupportClient implementation.
163 void DidReceiveCompositorFrameAck( 163 void DidReceiveCompositorFrameAck(
164 const cc::ReturnedResourceArray& resources) override; 164 const cc::ReturnedResourceArray& resources) override;
165 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 165 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
166 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 166 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
167 void WillDrawSurface(const cc::LocalSurfaceId& id, 167 void WillDrawSurface(const cc::LocalSurfaceId& id,
168 const gfx::Rect& damage_rect) override {} 168 const gfx::Rect& damage_rect) override {}
169 void DidRejectCompositorFrame() override;
169 170
170 // Exposed for tests. 171 // Exposed for tests.
171 bool IsChildFrameForTesting() const override; 172 bool IsChildFrameForTesting() const override;
172 cc::SurfaceId SurfaceIdForTesting() const override; 173 cc::SurfaceId SurfaceIdForTesting() const override;
173 CrossProcessFrameConnector* FrameConnectorForTesting() const { 174 CrossProcessFrameConnector* FrameConnectorForTesting() const {
174 return frame_connector_; 175 return frame_connector_;
175 } 176 }
176 177
177 // Returns the current surface scale factor. 178 // Returns the current surface scale factor.
178 float current_surface_scale_factor() { return current_surface_scale_factor_; } 179 float current_surface_scale_factor() { return current_surface_scale_factor_; }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // The background color of the widget. 266 // The background color of the widget.
266 SkColor background_color_; 267 SkColor background_color_;
267 268
268 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 269 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
269 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 270 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
270 }; 271 };
271 272
272 } // namespace content 273 } // namespace content
273 274
274 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 275 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698