diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-18 22:35:32 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-18 22:35:32 +0000 |
commit | 3a1c8a803f6dc31c32c88890daba7aba196b8aeb (patch) | |
tree | f2cd7fa11623de17d3e4282bf4da90a126458458 /content/renderer/render_view_impl.h | |
parent | 9f371c51df05f0591fd19eade22fa7bf8daf1c48 (diff) | |
download | chromium_src-3a1c8a803f6dc31c32c88890daba7aba196b8aeb.zip chromium_src-3a1c8a803f6dc31c32c88890daba7aba196b8aeb.tar.gz chromium_src-3a1c8a803f6dc31c32c88890daba7aba196b8aeb.tar.bz2 |
Add support for programmatically resizing the compositor when changing the device scale factor during layout tests
BUG=111316
R=jamesr@chromium.org
TEST=virtual/gpu/fast/hidpi tests pass on content_shell
Review URL: https://codereview.chromium.org/12917015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188859 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_view_impl.h')
-rw-r--r-- | content/renderer/render_view_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h index 30e2575..1842a7e 100644 --- a/content/renderer/render_view_impl.h +++ b/content/renderer/render_view_impl.h @@ -399,6 +399,9 @@ class CONTENT_EXPORT RenderViewImpl // synchronously from the renderer. void SetFocusAndActivateForTesting(bool enable); + // Change the device scale factor and force the compositor to resize. + void SetDeviceScaleFactorForTesting(float factor); + // IPC::Listener implementation ---------------------------------------------- virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |