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

Side by Side Diff: Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 1013803002: SkPaint::FilterLevel -> SkFilterQuality (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1903 if (!image) 1903 if (!image)
1904 return; 1904 return;
1905 1905
1906 // We have to wait until the image is fully loaded before setting it on the layer. 1906 // We have to wait until the image is fully loaded before setting it on the layer.
1907 if (!cachedImage->isLoaded()) 1907 if (!cachedImage->isLoaded())
1908 return; 1908 return;
1909 1909
1910 // This is a no-op if the layer doesn't have an inner layer for the image. 1910 // This is a no-op if the layer doesn't have an inner layer for the image.
1911 m_graphicsLayer->setContentsToImage(image); 1911 m_graphicsLayer->setContentsToImage(image);
1912 1912
1913 m_graphicsLayer->setFilterLevel(layoutObject()->style()->imageRendering() == ImageRenderingPixelated ? SkPaint::kNone_FilterLevel : SkPaint::kLow_FilterLeve l); 1913 m_graphicsLayer->setFilterQuality(layoutObject()->style()->imageRendering() == ImageRenderingPixelated ? kNone_SkFilterQuality : kLow_SkFilterQuality);
1914 1914
1915 // Prevent double-drawing: https://bugs.webkit.org/show_bug.cgi?id=58632 1915 // Prevent double-drawing: https://bugs.webkit.org/show_bug.cgi?id=58632
1916 updateDrawsContent(); 1916 updateDrawsContent();
1917 1917
1918 // Image animation is "lazy", in that it automatically stops unless someone is drawing 1918 // Image animation is "lazy", in that it automatically stops unless someone is drawing
1919 // the image. So we have to kick the animation each time; this has the downs ide that the 1919 // the image. So we have to kick the animation each time; this has the downs ide that the
1920 // image will keep animating, even if its layer is not visible. 1920 // image will keep animating, even if its layer is not visible.
1921 image->startAnimation(); 1921 image->startAnimation();
1922 } 1922 }
1923 1923
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
2373 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) { 2373 } else if (graphicsLayer == m_scrollingBlockSelectionLayer.get()) {
2374 name = "Scrolling Block Selection Layer"; 2374 name = "Scrolling Block Selection Layer";
2375 } else { 2375 } else {
2376 ASSERT_NOT_REACHED(); 2376 ASSERT_NOT_REACHED();
2377 } 2377 }
2378 2378
2379 return name; 2379 return name;
2380 } 2380 }
2381 2381
2382 } // namespace blink 2382 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698