| Index: cc/output/renderer.h
|
| diff --git a/cc/output/renderer.h b/cc/output/renderer.h
|
| index aaf9fd753ffd109934a30b17dc719e05d6096aac..a905d4c06023564d4b0b4d2afa1df86759fc863c 100644
|
| --- a/cc/output/renderer.h
|
| +++ b/cc/output/renderer.h
|
| @@ -20,7 +20,11 @@ class ScopedResource;
|
|
|
| class CC_EXPORT RendererClient {
|
| public:
|
| - virtual gfx::Size DeviceViewportSize() const = 0;
|
| + // Draw viewport in non-y-flipped window space. Note that while a draw is in
|
| + // progress, this is guaranteed to be contained within the output surface
|
| + // size.
|
| + virtual gfx::Rect DeviceViewport() const = 0;
|
| +
|
| virtual float DeviceScaleFactor() const = 0;
|
| virtual const LayerTreeSettings& Settings() const = 0;
|
| virtual void SetFullRootLayerDamage() = 0;
|
| @@ -44,12 +48,6 @@ class CC_EXPORT Renderer {
|
|
|
| const LayerTreeSettings& Settings() const { return client_->Settings(); }
|
|
|
| - gfx::Size ViewportSize() const { return client_->DeviceViewportSize(); }
|
| - int ViewportWidth() const { return ViewportSize().width(); }
|
| - int ViewportHeight() const { return ViewportSize().height(); }
|
| -
|
| - float DeviceScaleFactor() const { return client_->DeviceScaleFactor(); }
|
| -
|
| virtual void ViewportChanged() {}
|
| virtual void ReceiveCompositorFrameAck(const CompositorFrameAck& ack) {}
|
|
|
|
|