| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "GrVkGpu.h" | 8 #include "GrVkGpu.h" |
| 9 | 9 |
| 10 #include "GrContextOptions.h" | 10 #include "GrContextOptions.h" |
| (...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1629 (src->asTexture() && this->vkCaps().supportsCopiesAsDraws())) { | 1629 (src->asTexture() && this->vkCaps().supportsCopiesAsDraws())) { |
| 1630 desc->fFlags = kRenderTarget_GrSurfaceFlag; | 1630 desc->fFlags = kRenderTarget_GrSurfaceFlag; |
| 1631 } else { | 1631 } else { |
| 1632 // Just going to use CopyImage here | 1632 // Just going to use CopyImage here |
| 1633 desc->fFlags = kNone_GrSurfaceFlags; | 1633 desc->fFlags = kNone_GrSurfaceFlags; |
| 1634 } | 1634 } |
| 1635 | 1635 |
| 1636 return true; | 1636 return true; |
| 1637 } | 1637 } |
| 1638 | 1638 |
| 1639 void GrVkGpu::onGetMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&
, | 1639 void GrVkGpu::onQueryMultisampleSpecs(GrRenderTarget* rt, const GrStencilSetting
s&, |
| 1640 int* effectiveSampleCnt, SamplePattern*) { | 1640 int* effectiveSampleCnt, SamplePattern*) { |
| 1641 // TODO: stub. | 1641 // TODO: stub. |
| 1642 SkASSERT(!this->caps()->sampleLocationsSupport()); | 1642 SkASSERT(!this->caps()->sampleLocationsSupport()); |
| 1643 *effectiveSampleCnt = rt->desc().fSampleCnt; | 1643 *effectiveSampleCnt = rt->desc().fSampleCnt; |
| 1644 } | 1644 } |
| 1645 | 1645 |
| 1646 bool GrVkGpu::onGetReadPixelsInfo(GrSurface* srcSurface, int width, int height,
size_t rowBytes, | 1646 bool GrVkGpu::onGetReadPixelsInfo(GrSurface* srcSurface, int width, int height,
size_t rowBytes, |
| 1647 GrPixelConfig readConfig, DrawPreference* draw
Preference, | 1647 GrPixelConfig readConfig, DrawPreference* draw
Preference, |
| 1648 ReadPixelTempDrawInfo* tempDrawInfo) { | 1648 ReadPixelTempDrawInfo* tempDrawInfo) { |
| 1649 // These settings we will always want if a temp draw is performed. | 1649 // These settings we will always want if a temp draw is performed. |
| 1650 tempDrawInfo->fTempSurfaceDesc.fFlags = kRenderTarget_GrSurfaceFlag; | 1650 tempDrawInfo->fTempSurfaceDesc.fFlags = kRenderTarget_GrSurfaceFlag; |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1903 (VkFence*)&f
ence, | 1903 (VkFence*)&f
ence, |
| 1904 VK_TRUE, | 1904 VK_TRUE, |
| 1905 timeout)); | 1905 timeout)); |
| 1906 return (VK_SUCCESS == result); | 1906 return (VK_SUCCESS == result); |
| 1907 } | 1907 } |
| 1908 | 1908 |
| 1909 void GrVkGpu::deleteFence(GrFence fence) const { | 1909 void GrVkGpu::deleteFence(GrFence fence) const { |
| 1910 GR_VK_CALL(this->vkInterface(), DestroyFence(this->device(), (VkFence)fence,
nullptr)); | 1910 GR_VK_CALL(this->vkInterface(), DestroyFence(this->device(), (VkFence)fence,
nullptr)); |
| 1911 } | 1911 } |
| 1912 | 1912 |
| OLD | NEW |