| 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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 } | 1074 } |
| 1075 | 1075 |
| 1076 if (can_copy_as_draw(dst, src, this)) { | 1076 if (can_copy_as_draw(dst, src, this)) { |
| 1077 this->copySurfaceAsDraw(dst, src, srcRect, dstPoint); | 1077 this->copySurfaceAsDraw(dst, src, srcRect, dstPoint); |
| 1078 return true; | 1078 return true; |
| 1079 } | 1079 } |
| 1080 | 1080 |
| 1081 return false; | 1081 return false; |
| 1082 } | 1082 } |
| 1083 | 1083 |
| 1084 void GrVkGpu::onGetMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&
, |
| 1085 int* effectiveSampleCnt, SkAutoTDeleteArray<
SkPoint>*) { |
| 1086 // TODO: stub. |
| 1087 SkASSERT(!this->caps()->sampleLocationsSupport()); |
| 1088 *effectiveSampleCnt = rt->desc().fSampleCnt; |
| 1089 } |
| 1090 |
| 1084 bool GrVkGpu::onGetReadPixelsInfo(GrSurface* srcSurface, int width, int height,
size_t rowBytes, | 1091 bool GrVkGpu::onGetReadPixelsInfo(GrSurface* srcSurface, int width, int height,
size_t rowBytes, |
| 1085 GrPixelConfig readConfig, DrawPreference* draw
Preference, | 1092 GrPixelConfig readConfig, DrawPreference* draw
Preference, |
| 1086 ReadPixelTempDrawInfo* tempDrawInfo) { | 1093 ReadPixelTempDrawInfo* tempDrawInfo) { |
| 1087 // Currently we don't handle draws, so if the caller wants/needs to do a dra
w we need to fail | 1094 // Currently we don't handle draws, so if the caller wants/needs to do a dra
w we need to fail |
| 1088 if (kNoDraw_DrawPreference != *drawPreference) { | 1095 if (kNoDraw_DrawPreference != *drawPreference) { |
| 1089 return false; | 1096 return false; |
| 1090 } | 1097 } |
| 1091 | 1098 |
| 1092 if (srcSurface->config() != readConfig) { | 1099 if (srcSurface->config() != readConfig) { |
| 1093 // TODO: This should fall back to drawing or copying to change config of
srcSurface to match | 1100 // TODO: This should fall back to drawing or copying to change config of
srcSurface to match |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 int set_a_break_pt_here = 9; | 1270 int set_a_break_pt_here = 9; |
| 1264 aglSwapBuffers(aglGetCurrentContext()); | 1271 aglSwapBuffers(aglGetCurrentContext()); |
| 1265 #elif defined(SK_BUILD_FOR_WIN32) | 1272 #elif defined(SK_BUILD_FOR_WIN32) |
| 1266 SwapBuf(); | 1273 SwapBuf(); |
| 1267 int set_a_break_pt_here = 9; | 1274 int set_a_break_pt_here = 9; |
| 1268 SwapBuf(); | 1275 SwapBuf(); |
| 1269 #endif | 1276 #endif |
| 1270 #endif | 1277 #endif |
| 1271 } | 1278 } |
| 1272 | 1279 |
| OLD | NEW |