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

Side by Side Diff: src/gpu/SkGpuDevice.cpp

Issue 2182543003: Move prepareForExternalIO from GrRenderTarget to GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | « src/gpu/GrSurface.cpp ('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 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
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrSurface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698