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

Unified Diff: cc/output/renderer.h

Issue 15579002: Implement transform/clip support for Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Turn on fuzzy comparator for new SoftwareRenderer tests Created 7 years, 6 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: 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) {}

Powered by Google App Engine
This is Rietveld 408576698