| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkGpuDevice.h" | 8 #include "SkGpuDevice.h" |
| 9 | 9 |
| 10 #include "GrBlurUtils.h" | 10 #include "GrBlurUtils.h" |
| (...skipping 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1720 | 1720 |
| 1721 /////////////////////////////////////////////////////////////////////////////// | 1721 /////////////////////////////////////////////////////////////////////////////// |
| 1722 | 1722 |
| 1723 bool SkGpuDevice::onShouldDisableLCD(const SkPaint& paint) const { | 1723 bool SkGpuDevice::onShouldDisableLCD(const SkPaint& paint) const { |
| 1724 return GrTextUtils::ShouldDisableLCD(paint); | 1724 return GrTextUtils::ShouldDisableLCD(paint); |
| 1725 } | 1725 } |
| 1726 | 1726 |
| 1727 void SkGpuDevice::flush() { | 1727 void SkGpuDevice::flush() { |
| 1728 ASSERT_SINGLE_OWNER | 1728 ASSERT_SINGLE_OWNER |
| 1729 | 1729 |
| 1730 fRenderTarget->prepareForExternalIO(); | 1730 fDrawContext->prepareForExternalIO(); |
| 1731 } | 1731 } |
| 1732 | 1732 |
| 1733 /////////////////////////////////////////////////////////////////////////////// | 1733 /////////////////////////////////////////////////////////////////////////////// |
| 1734 | 1734 |
| 1735 SkBaseDevice* SkGpuDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint
*) { | 1735 SkBaseDevice* SkGpuDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint
*) { |
| 1736 ASSERT_SINGLE_OWNER | 1736 ASSERT_SINGLE_OWNER |
| 1737 | 1737 |
| 1738 SkSurfaceProps props(this->surfaceProps().flags(), cinfo.fPixelGeometry); | 1738 SkSurfaceProps props(this->surfaceProps().flags(), cinfo.fPixelGeometry); |
| 1739 | 1739 |
| 1740 // layers are never drawn in repeat modes, so we can request an approx | 1740 // layers are never drawn in repeat modes, so we can request an approx |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1773 } | 1773 } |
| 1774 | 1774 |
| 1775 SkImageFilterCache* SkGpuDevice::getImageFilterCache() { | 1775 SkImageFilterCache* SkGpuDevice::getImageFilterCache() { |
| 1776 ASSERT_SINGLE_OWNER | 1776 ASSERT_SINGLE_OWNER |
| 1777 // We always return a transient cache, so it is freed after each | 1777 // We always return a transient cache, so it is freed after each |
| 1778 // filter traversal. | 1778 // filter traversal. |
| 1779 return SkImageFilterCache::Create(kDefaultImageFilterCacheSize); | 1779 return SkImageFilterCache::Create(kDefaultImageFilterCacheSize); |
| 1780 } | 1780 } |
| 1781 | 1781 |
| 1782 #endif | 1782 #endif |
| OLD | NEW |