diff options
author | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-24 22:01:50 +0000 |
---|---|---|
committer | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-24 22:01:50 +0000 |
commit | 94c40e629c13f38e8eff6f8435ea490b7d40dbb9 (patch) | |
tree | 38578f86de47e92040742c8dd5e84a5910c2e5a7 /content/renderer/gpu/mailbox_output_surface.h | |
parent | f66375e4d724f5da1a406d553259685451cdf55d (diff) | |
download | chromium_src-94c40e629c13f38e8eff6f8435ea490b7d40dbb9.zip chromium_src-94c40e629c13f38e8eff6f8435ea490b7d40dbb9.tar.gz chromium_src-94c40e629c13f38e8eff6f8435ea490b7d40dbb9.tar.bz2 |
Part 1/3 (compositor) of adding with device scale factor to transport surfaces
Add a DeviceScaleFactor method to RendererClient (and all
its instances) to get the scale factor from the layer tree to the
output surface.
Add a scale factor argument to OutputSurface::Reshape
Replace OutputSurface::Reshape's use of WebGraphicsContext3D's
reshape with reshapeWithScaleFactor.
Implement reshapeWithScaleFactor for command buffer
based WebGraphicsContext3Ds, but stop propagating the
scale factor argument there.
BUG=132714
Review URL: https://chromiumcodereview.appspot.com/15688002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/gpu/mailbox_output_surface.h')
-rw-r--r-- | content/renderer/gpu/mailbox_output_surface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/renderer/gpu/mailbox_output_surface.h b/content/renderer/gpu/mailbox_output_surface.h index 7c159be..77fc7d4 100644 --- a/content/renderer/gpu/mailbox_output_surface.h +++ b/content/renderer/gpu/mailbox_output_surface.h @@ -32,7 +32,7 @@ class MailboxOutputSurface : public CompositorOutputSurface { virtual void SendFrameToParentCompositor(cc::CompositorFrame* frame) OVERRIDE; virtual void EnsureBackbuffer() OVERRIDE; virtual void DiscardBackbuffer() OVERRIDE; - virtual void Reshape(gfx::Size size) OVERRIDE; + virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE; virtual void BindFramebuffer() OVERRIDE; virtual void PostSubBuffer(gfx::Rect rect, const cc::LatencyInfo&) OVERRIDE; virtual void SwapBuffers(const cc::LatencyInfo&) OVERRIDE; |