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

Issue 2037983003: gl: Check format is valid given an internal format. (Closed)

Created:
4 years, 6 months ago by Daniele Castagna
Modified:
4 years, 6 months ago
Reviewers:
reveman
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gl: Check format is valid given an internal format. GLImageOzoneNativePixmap used to check that format and internal format were valid, but didn't check that they were compatible. This CL restricts the valid internalformats given the buffer format used to initialize the image (e.g: it's now prohibited to initialize with an R8 buffer an GL_RGBA image). TEST='gl_unittests --gtest_also_run_disabled_tests' on samus Committed: https://crrev.com/071378ae67d61ec709501b9647daa881240b25aa Cr-Commit-Position: refs/heads/master@{#397876}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make validation as restrictive as possible. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -8 lines) Patch
M ui/gl/gl_image_ozone_native_pixmap.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_image_ozone_native_pixmap.cc View 1 3 chunks +43 lines, -6 lines 0 comments Download
M ui/gl/gl_image_ozone_native_pixmap_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Daniele Castagna
4 years, 6 months ago (2016-06-03 23:21:14 UTC) #2
reveman
lgtm with a small suggestion https://codereview.chromium.org/2037983003/diff/1/ui/gl/gl_image_ozone_native_pixmap.cc File ui/gl/gl_image_ozone_native_pixmap.cc (right): https://codereview.chromium.org/2037983003/diff/1/ui/gl/gl_image_ozone_native_pixmap.cc#newcode24 ui/gl/gl_image_ozone_native_pixmap.cc:24: case GL_RGB: maybe we ...
4 years, 6 months ago (2016-06-03 23:33:01 UTC) #3
Daniele Castagna
https://codereview.chromium.org/2037983003/diff/1/ui/gl/gl_image_ozone_native_pixmap.cc File ui/gl/gl_image_ozone_native_pixmap.cc (right): https://codereview.chromium.org/2037983003/diff/1/ui/gl/gl_image_ozone_native_pixmap.cc#newcode24 ui/gl/gl_image_ozone_native_pixmap.cc:24: case GL_RGB: On 2016/06/03 at 23:33:01, reveman wrote: > ...
4 years, 6 months ago (2016-06-03 23:45:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2037983003/20001
4 years, 6 months ago (2016-06-04 00:05:49 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-04 01:03:23 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-06-04 01:04:56 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/071378ae67d61ec709501b9647daa881240b25aa
Cr-Commit-Position: refs/heads/master@{#397876}

Powered by Google App Engine
This is Rietveld 408576698