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

Side by Side Diff: src/gpu/vk/GrVkTexture.cpp

Issue 2029763002: Create free list heap for suballocation (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments; clean up debug code Created 4 years, 6 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/vk/GrVkMemory.cpp ('k') | tools/viewer/sk_app/VulkanWindowContext.cpp » ('j') | 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 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 "GrVkTexture.h" 8 #include "GrVkTexture.h"
9 #include "GrVkGpu.h" 9 #include "GrVkGpu.h"
10 #include "GrVkImageView.h" 10 #include "GrVkImageView.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 return false; 209 return false;
210 } 210 }
211 211
212 oldResource->unref(gpu); 212 oldResource->unref(gpu);
213 oldView->unref(gpu); 213 oldView->unref(gpu);
214 if (fLinearTextureView) { 214 if (fLinearTextureView) {
215 fLinearTextureView->unref(gpu); 215 fLinearTextureView->unref(gpu);
216 fLinearTextureView = nullptr; 216 fLinearTextureView = nullptr;
217 } 217 }
218 218
219 this->setNewResource(info.fImage, info.fAlloc); 219 this->setNewResource(info.fImage, info.fAlloc, info.fImageTiling);
220 fTextureView = textureView; 220 fTextureView = textureView;
221 fInfo = info; 221 fInfo = info;
222 this->texturePriv().setMaxMipMapLevel(mipLevels); 222 this->texturePriv().setMaxMipMapLevel(mipLevels);
223 223
224 return true; 224 return true;
225 } 225 }
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkMemory.cpp ('k') | tools/viewer/sk_app/VulkanWindowContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698