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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2068413002: cc: Remove fixed raster scale, stop rasterizing with will-change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebWidget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 2805 matching lines...) Expand 10 before | Expand all | Expand 10 after
2816 if (page()) 2816 if (page())
2817 page()->pointerLockController().didLosePointerLock(); 2817 page()->pointerLockController().didLosePointerLock();
2818 } 2818 }
2819 2819
2820 void WebViewImpl::didChangeWindowResizerRect() 2820 void WebViewImpl::didChangeWindowResizerRect()
2821 { 2821 {
2822 if (mainFrameImpl()->frameView()) 2822 if (mainFrameImpl()->frameView())
2823 mainFrameImpl()->frameView()->windowResizerRectChanged(); 2823 mainFrameImpl()->frameView()->windowResizerRectChanged();
2824 } 2824 }
2825 2825
2826 void WebViewImpl::reportFixedRasterScaleUseCounters(bool hasBlurryContent, bool hasPotentialPerformanceRegression)
2827 {
2828 if (!mainFrameImpl())
2829 return;
2830 Document* document = mainFrameImpl()->frame()->document();
2831 if (hasBlurryContent)
2832 UseCounter::count(document, UseCounter::FixedRasterScaleBlurryContent);
2833 if (hasPotentialPerformanceRegression)
2834 UseCounter::count(document, UseCounter::FixedRasterScalePotentialPerform anceRegression);
2835 }
2836
2837 // WebView -------------------------------------------------------------------- 2826 // WebView --------------------------------------------------------------------
2838 2827
2839 WebSettingsImpl* WebViewImpl::settingsImpl() 2828 WebSettingsImpl* WebViewImpl::settingsImpl()
2840 { 2829 {
2841 if (!m_webSettings) 2830 if (!m_webSettings)
2842 m_webSettings = wrapUnique(new WebSettingsImpl(&m_page->settings(), m_de vToolsEmulator.get())); 2831 m_webSettings = wrapUnique(new WebSettingsImpl(&m_page->settings(), m_de vToolsEmulator.get()));
2843 DCHECK(m_webSettings); 2832 DCHECK(m_webSettings);
2844 return m_webSettings.get(); 2833 return m_webSettings.get();
2845 } 2834 }
2846 2835
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after
4532 { 4521 {
4533 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa ctor rather than 4522 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa ctor rather than
4534 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. 4523 // page's scale factor, which can be 1 in use-zoom-for-dsf mode.
4535 if (!page()) 4524 if (!page())
4536 return 1; 4525 return 1;
4537 4526
4538 return page()->deviceScaleFactor(); 4527 return page()->deviceScaleFactor();
4539 } 4528 }
4540 4529
4541 } // namespace blink 4530 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698