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

Issue 1249543003: Creating functions for uploading a mipmapped texture. (Closed)

Created:
5 years, 5 months ago by cblume
Modified:
4 years, 9 months ago
Reviewers:
bsalomon, Chris Blume, *reed1
CC:
reviews_skia.org, vmiura, aelias_OOO_until_Jul13
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 11

Patch Set 2 : Style changes based on CL feedback. #

Total comments: 5

Patch Set 3 : Adding comments and updating parameters to reflect coding style. #

Patch Set 4 : Changed functions to take a SkTArray of SkMipMapLevels. That way we don't have createTexture and cr… #

Patch Set 5 : No longer exposing SkMipMap and SkCachedData. #

Total comments: 10

Patch Set 6 : Updating per CL comments: 100-char wrap and this-> #

Patch Set 7 : Working on getting an end-to-end integration. #

Patch Set 8 : Rebasing #

Patch Set 9 : More complete rebase and working towards a complete integration. #

Patch Set 10 : Making explicit copies of SkTArrays. #

Patch Set 11 : Accidentally uploaded a notes-to-self file. #

Patch Set 12 : Fixing some mistakes. #

Patch Set 13 : Removing the concept of a dirty mipmap. It is expected that the texture upload provides the mipmaps. #

Total comments: 15

Patch Set 14 : Removing auto, adding the BitmapInvalidator, adding the GenMipMaps code path back, and respecting 1… #

Patch Set 15 : Fixing a bug GL was reporting an error. The problem was missing texture upload in the case of TexSt… #

Patch Set 16 : Beginning to limit the smallest mipmap size to 1x1. #

Patch Set 17 : Minimum mipmap width/height is now 1. Hunting down the cause of some bugs. #

Patch Set 18 : Fixed the GL bugs. #

Patch Set 19 : Adding width and height to the mipmap levels. This is because the next level is not always half the… #

Patch Set 20 : If I disable the assert things seem to be working. #

Patch Set 21 : Rebasing #

Patch Set 22 : Fixing broken unit test. #

Patch Set 23 : Rebasing #

Patch Set 24 : Fixing incorrect rebase. #

Total comments: 38

Patch Set 25 : Merging #

Patch Set 26 : Fixing a bad merge. #

Patch Set 27 : Making changes based on code review comments. #

Patch Set 28 : Fixing the build. #

Patch Set 29 : Using Skia's stretching functions to generate mipmaps. #

Patch Set 30 : Rebasing. #

Patch Set 31 : Fixing the Windows build, which uses VS2013 and cannot use = default for move construction/assignme… #

Patch Set 32 : Fixing typo. #

Patch Set 33 : Rebasing. #

Patch Set 34 : Fixing merge mistakes #

Total comments: 1

Patch Set 35 : Fixing mistakes in merge. #

Patch Set 36 : Rebasing #

Patch Set 37 : Fixing bad rebase. #

Total comments: 11

Patch Set 38 : Addressing CR comments. #

Patch Set 39 : Texture provider does not recycle if there are mips. GrContext::writeS│ #

Patch Set 40 : Rebasing #

Total comments: 6

Patch Set 41 : Fixing a bug which prevented texture creation. Also addressing more review comments. #

Patch Set 42 : Hopefully fixing the access violation. #

Patch Set 43 : Allocating texture memory even if we are not populating it yet. #

Patch Set 44 : No more psychic debugging. #

Patch Set 45 : More debug logging. #

Patch Set 46 : The width/height seems to /4 not /2? #

Patch Set 47 : It looks like we were skipping the 1st mip level (and thus having an extra one at the end. #

Patch Set 48 : Allocating one buffer for all mip levels. Previously, each new mip level clobbered the previous. #

Patch Set 49 : Whoops. Fixing build errors. #

Patch Set 50 : Trying something. #

Patch Set 51 : No more access violation. #

Patch Set 52 : When mipmaps are provided, the texture is marked as having valid mipmaps. #

Patch Set 53 : Adding TODO for updating the desc and scratch key when mipmaps are generated. #

Patch Set 54 : Fixing memory corruption #

Patch Set 55 : Rebasing #

Patch Set 56 : Fixing the call to GenerateMipmaps failing. #

Patch Set 57 : Fixing typo when moving generate_mipmaps to the new file. This fixes the broken tiledscaledbitmap t… #

Patch Set 58 : Adding mipping to the SkImageCacherator #

Patch Set 59 : Fixing a problem with compressed, non-mipmapped texture creation. #

Patch Set 60 : Rebasing, fixing broken assert, and refactoring usage of SkAutoSMalloc for texel data. #

Patch Set 61 : Rebasing #

Patch Set 62 : Fixing iOS. #

Total comments: 3

Patch Set 63 : Moving glTexStorage over to a separate CL. #

Total comments: 10

Patch Set 64 : Using SkSTArray when the size is known at compile-time. Removing an unnecessary branch. #

Patch Set 65 : Storing the max mipmap level in the texture. #

Total comments: 6

Patch Set 66 : Setting the max mipmap level correctly when asking the driver to generate the mipmaps. #

Patch Set 67 : Refactoring the mipmap level count out. Cleaning includes. #

Total comments: 4

Patch Set 68 : Adding max mipmap level to GrGLTexture::TexParams. Changing when we tell GL the max mipmap level --… #

Patch Set 69 : Cleaning up the allocated SkMipMap object. #

Total comments: 4

Patch Set 70 : Using GrMipLevel inside GrTypes.h. External API to use array + count instread of SkTArray. SkMipMap… #

Patch Set 71 : Rebasing #

Patch Set 72 : Fixing dm errors. #

Patch Set 73 : Fixing Windows build. #

Patch Set 74 : Fixing rebase errors and cleaning up. #

Total comments: 4

Patch Set 75 : Removing old GrTexture constructor, updating comments to be more accurate. #

Patch Set 76 : The Google3 stack frame size requirement has disappeared. #

Patch Set 77 : Cleaning up spacing and comments. #

Patch Set 78 : Rebasing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+744 lines, -287 lines) Patch
M include/gpu/GrTexture.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 2 chunks +2 lines, -1 line 0 comments Download
M include/gpu/GrTextureProvider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 2 chunks +13 lines, -2 lines 0 comments Download
M include/gpu/GrTypes.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 4 chunks +10 lines, -2 lines 0 comments Download
M src/core/SkImageCacherator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkImageCacherator.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 2 chunks +8 lines, -2 lines 0 comments Download
M src/core/SkMipMap.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 2 chunks +2 lines, -0 lines 0 comments Download
M src/effects/SkColorCubeFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 5 chunks +44 lines, -16 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 3 chunks +89 lines, -35 lines 0 comments Download
M src/gpu/GrImageIDTextureAdjuster.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrImageIDTextureAdjuster.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 3 chunks +8 lines, -4 lines 0 comments Download
M src/gpu/GrSurface.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 2 chunks +3 lines, -4 lines 0 comments Download
M src/gpu/GrTexture.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 5 chunks +22 lines, -6 lines 0 comments Download
M src/gpu/GrTextureParamsAdjuster.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrTextureParamsAdjuster.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 3 chunks +11 lines, -4 lines 0 comments Download
M src/gpu/GrTexturePriv.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 1 chunk +8 lines, -0 lines 0 comments Download
M src/gpu/GrTextureProvider.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 3 chunks +32 lines, -12 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 3 chunks +63 lines, -1 line 0 comments Download
M src/gpu/SkGrPixelRef.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/SkGrPriv.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/effects/GrTextureStripAtlas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGLDefines.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 6 chunks +13 lines, -11 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 20 chunks +385 lines, -177 lines 0 comments Download
M src/gpu/gl/GrGLTexture.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 2 chunks +2 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLTexture.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 98 (15 generated)
cblume
I am sorry this took so long. This is not yet finished and should not ...
5 years, 5 months ago (2015-07-21 10:10:11 UTC) #2
scroggo
I made a few style comments, but this code is not within my area of ...
5 years, 5 months ago (2015-07-21 14:44:23 UTC) #4
cblume
https://codereview.chromium.org/1249543003/diff/1/src/gpu/GrGpu.cpp File src/gpu/GrGpu.cpp (right): https://codereview.chromium.org/1249543003/diff/1/src/gpu/GrGpu.cpp#newcode67 src/gpu/GrGpu.cpp:67: static bool check_texture_creation_params(const GrCaps* caps, const GrSurfaceDesc& desc, On ...
5 years, 5 months ago (2015-07-21 23:07:30 UTC) #5
bsalomon
https://codereview.chromium.org/1249543003/diff/20001/include/gpu/GrTextureProvider.h File include/gpu/GrTextureProvider.h (right): https://codereview.chromium.org/1249543003/diff/20001/include/gpu/GrTextureProvider.h#newcode33 include/gpu/GrTextureProvider.h:33: /** What do you think about combining createTexture and ...
5 years, 5 months ago (2015-07-22 17:21:10 UTC) #6
cblume
https://codereview.chromium.org/1249543003/diff/20001/include/gpu/GrTextureProvider.h File include/gpu/GrTextureProvider.h (right): https://codereview.chromium.org/1249543003/diff/20001/include/gpu/GrTextureProvider.h#newcode33 include/gpu/GrTextureProvider.h:33: /** On 2015/07/22 17:21:10, bsalomon wrote: > What do ...
5 years, 5 months ago (2015-07-22 18:32:40 UTC) #7
bsalomon
On 2015/07/22 18:32:40, cblume wrote: > https://codereview.chromium.org/1249543003/diff/20001/include/gpu/GrTextureProvider.h > File include/gpu/GrTextureProvider.h (right): > > https://codereview.chromium.org/1249543003/diff/20001/include/gpu/GrTextureProvider.h#newcode33 > ...
5 years, 5 months ago (2015-07-22 18:57:07 UTC) #8
cblume
https://codereview.chromium.org/1249543003/diff/20001/src/gpu/gl/GrGLGpu.cpp File src/gpu/gl/GrGLGpu.cpp (right): https://codereview.chromium.org/1249543003/diff/20001/src/gpu/gl/GrGLGpu.cpp#newcode798 src/gpu/gl/GrGLGpu.cpp:798: SkToInt(dataSize), I think this may be a bug. Each ...
5 years, 5 months ago (2015-07-23 18:18:59 UTC) #9
cblume
I have updated the style. I think I capitalized with "Mipmap" which is inconsistent with ...
5 years, 5 months ago (2015-07-24 23:49:03 UTC) #10
bsalomon
On 2015/07/24 23:49:03, cblume wrote: > I have updated the style. I think I capitalized ...
5 years, 4 months ago (2015-07-27 13:14:26 UTC) #11
reed1
can we keep SkCachedData and SkMipMap private (in the src/core directories)?
5 years, 4 months ago (2015-07-27 21:18:09 UTC) #13
cblume
On 2015/07/27 13:14:26, bsalomon wrote: > On 2015/07/24 23:49:03, cblume wrote: > > I have ...
5 years, 4 months ago (2015-08-14 21:45:56 UTC) #15
cblume
On 2015/07/27 21:18:09, reed1 wrote: > can we keep SkCachedData and SkMipMap private (in the ...
5 years, 4 months ago (2015-08-14 21:48:51 UTC) #16
cblume
This now uses only 1 path for compressed and 1 path for uncompressed. It does ...
5 years, 4 months ago (2015-08-14 21:56:56 UTC) #17
bsalomon
Sorry for the slow review. Still need to look in detail at GrGLGpu. Also in ...
5 years, 3 months ago (2015-08-26 18:30:11 UTC) #18
cblume
I still feel a tad uncomfortable with how the new SkMipMapLevel does not ensure its ...
5 years, 3 months ago (2015-08-26 18:58:00 UTC) #19
bsalomon
https://codereview.chromium.org/1249543003/diff/80001/src/gpu/GrGpu.cpp File src/gpu/GrGpu.cpp (right): https://codereview.chromium.org/1249543003/diff/80001/src/gpu/GrGpu.cpp#newcode145 src/gpu/GrGpu.cpp:145: /* TODO: I am unsure how to use a ...
5 years, 3 months ago (2015-08-27 13:22:49 UTC) #20
bsalomon
Two serious comments: I do think you need to hook up the invalidator. It is ...
5 years, 3 months ago (2015-09-15 13:14:11 UTC) #21
cblume
https://codereview.chromium.org/1249543003/diff/240001/include/gpu/GrSurface.h File include/gpu/GrSurface.h (right): https://codereview.chromium.org/1249543003/diff/240001/include/gpu/GrSurface.h#newcode119 include/gpu/GrSurface.h:119: * This is so older code which currently uses ...
5 years, 3 months ago (2015-09-16 18:40:46 UTC) #22
cblume
I was able to run skdiff and had only a small amount of images with ...
5 years, 3 months ago (2015-09-19 08:59:44 UTC) #23
bsalomon
mostly looks good, small stuff noted inline. https://codereview.chromium.org/1249543003/diff/450001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1249543003/diff/450001/include/gpu/GrContext.h#newcode267 include/gpu/GrContext.h:267: * element ...
5 years, 2 months ago (2015-09-30 18:01:30 UTC) #24
cblume
I rebased to work along side reed@'s changes and incorporated the comments. It does not ...
5 years, 2 months ago (2015-10-08 09:27:57 UTC) #25
bsalomon
https://codereview.chromium.org/1249543003/diff/450001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1249543003/diff/450001/src/gpu/GrContext.cpp#newcode348 src/gpu/GrContext.cpp:348: currentMipWidth = std::max(1, currentMipWidth / 2); On 2015/10/08 09:27:56, ...
5 years, 2 months ago (2015-10-08 17:01:35 UTC) #26
cblume
On 2015/10/08 17:01:35, bsalomon wrote: > https://codereview.chromium.org/1249543003/diff/450001/src/gpu/GrContext.cpp > File src/gpu/GrContext.cpp (right): > > https://codereview.chromium.org/1249543003/diff/450001/src/gpu/GrContext.cpp#newcode348 > ...
5 years, 2 months ago (2015-10-08 18:33:10 UTC) #27
cblume
On 2015/10/08 18:33:10, cblume wrote: > On 2015/10/08 17:01:35, bsalomon wrote: > > https://codereview.chromium.org/1249543003/diff/450001/src/gpu/GrContext.cpp > ...
5 years, 2 months ago (2015-10-08 18:34:16 UTC) #28
cblume
On 2015/10/08 18:34:16, cblume wrote: > On 2015/10/08 18:33:10, cblume wrote: > > On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 20:44:51 UTC) #29
cblume
This should now respect the GL spec and use different stretching algorithms to produce higher ...
5 years, 2 months ago (2015-10-13 16:05:01 UTC) #30
bsalomon
Hey Chris, started to look at this but it looks like the diff is a ...
5 years, 2 months ago (2015-10-19 14:56:18 UTC) #31
cblume
On 2015/10/19 14:56:18, bsalomon wrote: > Hey Chris, started to look at this but it ...
5 years, 2 months ago (2015-10-19 17:45:41 UTC) #32
cblume
On 2015/10/19 17:45:41, cblume wrote: > On 2015/10/19 14:56:18, bsalomon wrote: > > Hey Chris, ...
5 years, 1 month ago (2015-10-27 06:11:28 UTC) #33
bsalomon
I think I found some non-trivial wrinkles to this... see comments inline. https://codereview.chromium.org/1249543003/diff/710001/src/core/SkMipMap.cpp File src/core/SkMipMap.cpp ...
5 years, 1 month ago (2015-10-28 16:40:45 UTC) #34
cblume
https://codereview.chromium.org/1249543003/diff/710001/src/core/SkMipMap.cpp File src/core/SkMipMap.cpp (right): https://codereview.chromium.org/1249543003/diff/710001/src/core/SkMipMap.cpp#newcode366 src/core/SkMipMap.cpp:366: if (levelIndex > fCount) { On 2015/10/28 16:40:44, bsalomon ...
5 years, 1 month ago (2015-10-28 22:49:40 UTC) #35
bsalomon
On 2015/10/28 22:49:40, cblume wrote: > https://codereview.chromium.org/1249543003/diff/710001/src/core/SkMipMap.cpp > File src/core/SkMipMap.cpp (right): > > https://codereview.chromium.org/1249543003/diff/710001/src/core/SkMipMap.cpp#newcode366 > ...
5 years, 1 month ago (2015-10-29 14:07:23 UTC) #36
cblume
On 2015/10/29 14:07:23, bsalomon wrote: > On 2015/10/28 22:49:40, cblume wrote: > > https://codereview.chromium.org/1249543003/diff/710001/src/core/SkMipMap.cpp > ...
5 years, 1 month ago (2015-11-02 10:48:46 UTC) #37
bsalomon
looking good, small comments below. https://chromiumcodereview.appspot.com/1249543003/diff/770001/src/gpu/GrSurface.cpp File src/gpu/GrSurface.cpp (right): https://chromiumcodereview.appspot.com/1249543003/diff/770001/src/gpu/GrSurface.cpp#newcode97 src/gpu/GrSurface.cpp:97: uint32_t pixelOpsFlags) { tiny ...
5 years, 1 month ago (2015-11-02 16:01:28 UTC) #38
cblume
https://codereview.chromium.org/1249543003/diff/770001/src/gpu/GrSurface.cpp File src/gpu/GrSurface.cpp (right): https://codereview.chromium.org/1249543003/diff/770001/src/gpu/GrSurface.cpp#newcode97 src/gpu/GrSurface.cpp:97: uint32_t pixelOpsFlags) { On 2015/11/02 16:01:28, bsalomon wrote: > ...
5 years, 1 month ago (2015-11-03 02:10:22 UTC) #39
bsalomon
lgtm
5 years, 1 month ago (2015-11-03 14:49:18 UTC) #40
cblume
https://chromiumcodereview.appspot.com/1249543003/diff/710001/src/gpu/GrTexture.cpp File src/gpu/GrTexture.cpp (right): https://chromiumcodereview.appspot.com/1249543003/diff/710001/src/gpu/GrTexture.cpp#newcode96 src/gpu/GrTexture.cpp:96: if (desc.fIsMipMapped) { On 2015/10/28 16:40:44, bsalomon wrote: > ...
5 years, 1 month ago (2015-11-09 21:26:32 UTC) #41
cblume
https://chromiumcodereview.appspot.com/1249543003/diff/710001/src/gpu/GrTexture.cpp File src/gpu/GrTexture.cpp (right): https://chromiumcodereview.appspot.com/1249543003/diff/710001/src/gpu/GrTexture.cpp#newcode29 src/gpu/GrTexture.cpp:29: this->didChangeGpuMemorySize(); On 2015/10/28 16:40:44, bsalomon wrote: > Can we ...
5 years, 1 month ago (2015-11-09 22:43:02 UTC) #42
cblume
I have fixed a handful of bugs (memory corruption, compressed non-mipmapped images being uploaded incorrectly) ...
5 years ago (2015-12-04 14:25:17 UTC) #43
bsalomon
On 2015/12/04 14:25:17, cblume wrote: > I have fixed a handful of bugs (memory corruption, ...
5 years ago (2015-12-04 16:43:42 UTC) #44
bsalomon
On 2015/12/04 14:25:17, cblume wrote: > I have fixed a handful of bugs (memory corruption, ...
5 years ago (2015-12-04 16:44:04 UTC) #45
cblume
Well dang, that's unfortunate. Looking at them, they seem to be maybe only one or ...
5 years ago (2015-12-04 18:47:54 UTC) #46
cblume
Also, are we 100% certain this link is only showing patchset 60? https://gold.skia.org/search2?issue=1249543003&unt=true&query=source_type%3Dgm&master=false I see ...
5 years ago (2015-12-04 23:25:07 UTC) #47
bsalomon
On 2015/12/04 18:47:54, cblume wrote: > Well dang, that's unfortunate. > > Looking at them, ...
5 years ago (2015-12-07 15:55:29 UTC) #48
bsalomon
On 2015/12/04 23:25:07, cblume wrote: > Also, are we 100% certain this link is only ...
5 years ago (2015-12-07 15:57:27 UTC) #49
cblume
On 2015/12/07 15:57:27, bsalomon wrote: > Clicking the patchset will show the images for it. ...
5 years ago (2015-12-07 21:19:30 UTC) #50
bsalomon
On 2015/12/07 21:19:30, cblume wrote: > On 2015/12/07 15:57:27, bsalomon wrote: > > Clicking the ...
5 years ago (2015-12-07 21:38:53 UTC) #51
cblume
I am about to go to bed. There is only one image which remains a ...
5 years ago (2015-12-08 09:24:35 UTC) #52
bsalomon
On 2015/12/08 09:24:35, cblume wrote: > I am about to go to bed. There is ...
5 years ago (2015-12-08 14:59:20 UTC) #53
Chris Blume
iOS is now fixed. I did a lot of testing over at https://codereview.chromium.org/1508663004/#ps1790001 and gathered ...
4 years, 11 months ago (2016-01-07 21:42:23 UTC) #55
bsalomon
This is understandably a very large change list. Could we make the reintroduction of texstorage ...
4 years, 11 months ago (2016-01-08 16:43:29 UTC) #57
cblume
On 2016/01/08 16:43:29, bsalomon wrote: > This is understandably a very large change list. Could ...
4 years, 11 months ago (2016-01-09 01:26:56 UTC) #58
bsalomon
https://codereview.chromium.org/1249543003/diff/1210001/src/gpu/GrTextureProvider.cpp File src/gpu/GrTextureProvider.cpp (right): https://codereview.chromium.org/1249543003/diff/1210001/src/gpu/GrTextureProvider.cpp#newcode35 src/gpu/GrTextureProvider.cpp:35: if (texture->writePixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig, On 2016/01/09 01:26:56, ...
4 years, 11 months ago (2016-01-11 17:16:38 UTC) #59
Chris Blume
https://codereview.chromium.org/1249543003/diff/1230001/src/gpu/GrGpu.cpp File src/gpu/GrGpu.cpp (right): https://codereview.chromium.org/1249543003/diff/1230001/src/gpu/GrGpu.cpp#newcode134 src/gpu/GrGpu.cpp:134: if (!caps) { On 2016/01/11 17:16:38, bsalomon wrote: > ...
4 years, 11 months ago (2016-01-12 12:49:34 UTC) #61
cblume
The texture now stores the max mipmap level and sets it appropriately inside GrGLGpu::bindTexture. It ...
4 years, 11 months ago (2016-01-13 21:51:57 UTC) #62
bsalomon
On 2016/01/13 21:51:57, cblume wrote: > The texture now stores the max mipmap level and ...
4 years, 11 months ago (2016-01-14 13:57:10 UTC) #63
bsalomon
https://codereview.chromium.org/1249543003/diff/1270001/include/gpu/GrTexture.h File include/gpu/GrTexture.h (right): https://codereview.chromium.org/1249543003/diff/1270001/include/gpu/GrTexture.h#newcode65 include/gpu/GrTexture.h:65: int fMaxMipMapLevel; Could this be combined with the Desc's ...
4 years, 11 months ago (2016-01-14 13:57:23 UTC) #64
Chris Blume
On 2016/01/14 13:57:10, bsalomon wrote: > On 2016/01/13 21:51:57, cblume wrote: > > The texture ...
4 years, 11 months ago (2016-01-15 10:30:32 UTC) #65
Chris Blume
https://codereview.chromium.org/1249543003/diff/1270001/include/gpu/GrTexture.h File include/gpu/GrTexture.h (right): https://codereview.chromium.org/1249543003/diff/1270001/include/gpu/GrTexture.h#newcode65 include/gpu/GrTexture.h:65: int fMaxMipMapLevel; On 2016/01/14 13:57:23, bsalomon wrote: > Could ...
4 years, 11 months ago (2016-01-20 06:15:08 UTC) #66
bsalomon
I think the TSAN failures are known but ASAN indicates a leak. One comment inline, ...
4 years, 11 months ago (2016-01-20 14:21:44 UTC) #67
cblume
https://codereview.chromium.org/1249543003/diff/1310001/src/gpu/gl/GrGLGpu.cpp File src/gpu/gl/GrGLGpu.cpp (right): https://codereview.chromium.org/1249543003/diff/1310001/src/gpu/gl/GrGLGpu.cpp#newcode2744 src/gpu/gl/GrGLGpu.cpp:2744: GL_CALL(TexParameteri(target, GR_GL_TEXTURE_MIN_LOD, 0)); On 2016/01/20 14:21:44, bsalomon wrote: > ...
4 years, 11 months ago (2016-01-21 23:08:50 UTC) #68
bsalomon
lgtm w/ tiny nit inline. https://codereview.chromium.org/1249543003/diff/1350001/src/gpu/SkGr.cpp File src/gpu/SkGr.cpp (right): https://codereview.chromium.org/1249543003/diff/1350001/src/gpu/SkGr.cpp#newcode317 src/gpu/SkGr.cpp:317: std::unique_ptr<SkMipMap> mipmaps(SkMipMap::Build(bitmap, nullptr)); We ...
4 years, 11 months ago (2016-01-22 14:33:36 UTC) #69
reed1
In an effort to consolidate our public api, do we need a separate struct for ...
4 years, 11 months ago (2016-01-22 16:29:13 UTC) #70
reed1
This is a pretty extensive change. Have we been able to bench it to know ...
4 years, 11 months ago (2016-01-22 16:30:36 UTC) #71
reed1
4 years, 11 months ago (2016-01-22 16:31:18 UTC) #74
cblume
On 2016/01/22 16:29:13, reed1 wrote: > In an effort to consolidate our public api, do ...
4 years, 11 months ago (2016-01-23 01:34:15 UTC) #75
Chris Blume
https://codereview.chromium.org/1249543003/diff/1310001/src/core/SkMipMap.h File src/core/SkMipMap.h (right): https://codereview.chromium.org/1249543003/diff/1310001/src/core/SkMipMap.h#newcode32 src/core/SkMipMap.h:32: // getLevel() is 1-indexed because the SkMipMap contains the ...
4 years, 11 months ago (2016-01-25 08:18:01 UTC) #76
Chris Blume
On 2016/01/22 16:30:36, reed1 wrote: > This is a pretty extensive change. Have we been ...
4 years, 11 months ago (2016-01-25 08:19:53 UTC) #77
reed1
To help reduce the size, we might also look to land some of the "utility" ...
4 years, 11 months ago (2016-01-25 14:08:34 UTC) #78
cblume
On 2016/01/25 14:08:34, reed1 wrote: > To help reduce the size, we might also look ...
4 years, 11 months ago (2016-01-26 02:25:07 UTC) #79
cblume
With the separate CLs pulled out, this has been cleaned up. I just cherrypicked the ...
4 years, 10 months ago (2016-02-24 07:59:24 UTC) #80
reed1
non-gpu side LGTM deferring to brian for gpu
4 years, 10 months ago (2016-02-24 12:18:44 UTC) #81
bsalomon
https://codereview.chromium.org/1249543003/diff/1450001/include/gpu/GrTexture.h File include/gpu/GrTexture.h (right): https://codereview.chromium.org/1249543003/diff/1450001/include/gpu/GrTexture.h#newcode49 include/gpu/GrTexture.h:49: GrTexture(GrGpu*, LifeCycle, const GrSurfaceDesc&, bool wasMipMapDataProvided); Do we need ...
4 years, 10 months ago (2016-02-24 14:43:15 UTC) #82
cblume
https://codereview.chromium.org/1249543003/diff/1450001/include/gpu/GrTexture.h File include/gpu/GrTexture.h (right): https://codereview.chromium.org/1249543003/diff/1450001/include/gpu/GrTexture.h#newcode49 include/gpu/GrTexture.h:49: GrTexture(GrGpu*, LifeCycle, const GrSurfaceDesc&, bool wasMipMapDataProvided); On 2016/02/24 14:43:15, ...
4 years, 10 months ago (2016-02-24 18:19:19 UTC) #83
bsalomon
lgtm
4 years, 10 months ago (2016-02-24 18:23:45 UTC) #84
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1249543003/1510001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1249543003/1510001
4 years, 10 months ago (2016-02-26 18:37:35 UTC) #87
commit-bot: I haz the power
Try jobs failed on following builders: Build-Mac-Clang-Arm7-Debug-iOS-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-Arm7-Debug-iOS-Trybot/builds/699) Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, ...
4 years, 10 months ago (2016-02-26 18:38:54 UTC) #89
bsalomon
You need to rebaseline on a recent change of mine. createTexture now takes a SkBudgeted ...
4 years, 10 months ago (2016-02-26 18:41:16 UTC) #90
cblume
On 2016/02/26 18:41:16, bsalomon wrote: > You need to rebaseline on a recent change of ...
4 years, 10 months ago (2016-02-26 18:42:26 UTC) #91
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1249543003/1530001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1249543003/1530001
4 years, 10 months ago (2016-02-26 21:09:54 UTC) #94
commit-bot: I haz the power
Committed patchset #78 (id:1530001) as https://skia.googlesource.com/skia/+/55f2d2d57f4dd4109aa0c9dab6023373e3b928ec
4 years, 10 months ago (2016-02-26 21:20:54 UTC) #96
Kimmo Kinnunen
You probably know this already, but this causes following errors in Chromium with GPU rasterization: ...
4 years, 9 months ago (2016-02-29 09:59:14 UTC) #97
cblume
4 years, 9 months ago (2016-02-29 18:52:30 UTC) #98
Message was sent while issue was closed.
On 2016/02/29 09:59:14, Kimmo Kinnunen wrote:
> You probably know this already, but this causes following errors in Chromium
> with GPU rasterization:
> 
> [18413:18413:0229/113825:ERROR:gles2_cmd_decoder_autogen.h(2853)]
> [.CommandBufferContext.RenderWorker-0x3d352c0d89a0.GpuRasterization]GL ERROR
> :GL_INVALID_ENUM : glTexParameteri: pname was GL_TEXTURE_BASE_LEVEL
> [18413:18413:0229/113825:ERROR:gles2_cmd_decoder_autogen.h(2853)]
> [.CommandBufferContext.RenderWorker-0x3d352c0d89a0.GpuRasterization]GL ERROR
> :GL_INVALID_ENUM : glTexParameteri: pname was GL_TEXTURE_MAX_LOD
> [18413:18413:0229/113825:ERROR:gles2_cmd_decoder_autogen.h(2853)]
> [.CommandBufferContext.RenderWorker-0x3d352c0d89a0.GpuRasterization]GL ERROR
> :GL_INVALID_ENUM : glTexParameteri: pname was GL_TEXTURE_MAX_LEVEL_APPLE
> 
> (setting the texture params on ES2 context, where the params are supported
only
> in ES3)

Good catch.
We talked a bit and created
https://bugs.chromium.org/p/chromium/issues/detail?id=590804 where we will fix
this.
Thanks for the sharp eyes!

Powered by Google App Engine
This is Rietveld 408576698