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

Side by Side Diff: Source/web/WebSettingsImpl.cpp

Issue 1180663002: Make deferred image decoding default to on. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: deferredon: . Created 5 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 unified diff | Download patch
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 30 matching lines...) Expand all
41 41
42 namespace blink { 42 namespace blink {
43 43
44 WebSettingsImpl::WebSettingsImpl(Settings* settings, DevToolsEmulator* devToolsE mulator) 44 WebSettingsImpl::WebSettingsImpl(Settings* settings, DevToolsEmulator* devToolsE mulator)
45 : m_settings(settings) 45 : m_settings(settings)
46 , m_devToolsEmulator(devToolsEmulator) 46 , m_devToolsEmulator(devToolsEmulator)
47 , m_showFPSCounter(false) 47 , m_showFPSCounter(false)
48 , m_showPaintRects(false) 48 , m_showPaintRects(false)
49 , m_renderVSyncNotificationEnabled(false) 49 , m_renderVSyncNotificationEnabled(false)
50 , m_autoZoomFocusedNodeToLegibleScale(false) 50 , m_autoZoomFocusedNodeToLegibleScale(false)
51 , m_deferredImageDecodingEnabled(false)
52 , m_supportDeprecatedTargetDensityDPI(false) 51 , m_supportDeprecatedTargetDensityDPI(false)
53 , m_shrinksViewportContentToFit(false) 52 , m_shrinksViewportContentToFit(false)
54 , m_viewportMetaLayoutSizeQuirk(false) 53 , m_viewportMetaLayoutSizeQuirk(false)
55 , m_viewportMetaNonUserScalableQuirk(false) 54 , m_viewportMetaNonUserScalableQuirk(false)
56 , m_clobberUserAgentInitialScaleQuirk(false) 55 , m_clobberUserAgentInitialScaleQuirk(false)
57 , m_mainFrameResizesAreOrientationChanges(false) 56 , m_mainFrameResizesAreOrientationChanges(false)
58 { 57 {
59 ASSERT(settings); 58 ASSERT(settings);
60 } 59 }
61 60
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 m_settings->setAntialiased2dCanvasEnabled(enabled); 539 m_settings->setAntialiased2dCanvasEnabled(enabled);
541 } 540 }
542 541
543 void WebSettingsImpl::setAntialiasedClips2dCanvasEnabled(bool enabled) 542 void WebSettingsImpl::setAntialiasedClips2dCanvasEnabled(bool enabled)
544 { 543 {
545 m_settings->setAntialiasedClips2dCanvasEnabled(enabled); 544 m_settings->setAntialiasedClips2dCanvasEnabled(enabled);
546 } 545 }
547 546
548 void WebSettingsImpl::setDeferredImageDecodingEnabled(bool enabled) 547 void WebSettingsImpl::setDeferredImageDecodingEnabled(bool enabled)
549 { 548 {
550 DeferredImageDecoder::setEnabled(enabled);
551 m_deferredImageDecodingEnabled = enabled;
552 } 549 }
553 550
554 void WebSettingsImpl::setPreferCompositingToLCDTextEnabled(bool enabled) 551 void WebSettingsImpl::setPreferCompositingToLCDTextEnabled(bool enabled)
555 { 552 {
556 m_devToolsEmulator->setPreferCompositingToLCDTextEnabled(enabled); 553 m_devToolsEmulator->setPreferCompositingToLCDTextEnabled(enabled);
557 } 554 }
558 555
559 void WebSettingsImpl::setMinimumAccelerated2dCanvasSize(int numPixels) 556 void WebSettingsImpl::setMinimumAccelerated2dCanvasSize(int numPixels)
560 { 557 {
561 m_settings->setMinimumAccelerated2dCanvasSize(numPixels); 558 m_settings->setMinimumAccelerated2dCanvasSize(numPixels);
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 { 788 {
792 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); 789 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options));
793 } 790 }
794 791
795 void WebSettingsImpl::setUseMobileViewportStyle(bool enabled) 792 void WebSettingsImpl::setUseMobileViewportStyle(bool enabled)
796 { 793 {
797 m_devToolsEmulator->setUseMobileViewportStyle(enabled); 794 m_devToolsEmulator->setUseMobileViewportStyle(enabled);
798 } 795 }
799 796
800 } // namespace blink 797 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698