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

Issue 2758863003: Fix error msg of OffscreenCanvas.commit() on gpu compositing (Closed)

Created:
3 years, 9 months ago by xlai (Olivia)
Modified:
3 years, 8 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, fmalita+watch_chromium.org, Rik, Stephen Chennney, blink-reviews, kinuko+watch, ajuma+watch_chromium.org, danakj+watch_chromium.org, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix error msg of OffscreenCanvas.commit() on gpu compositing The previous CL, https://codereview.chromium.org/2607373002/, that fixed a resizing problem in accelerated 2d canvas, has introduced this error message "GL_INVALID_ENUM : glTexParameteri: param was GL_FALSE" because the resource.filter in OffscreenCanvasFrameDispatcherImpl is not set. This causes ResourceProvider::DeleteAndReturnUnusedResourcesToChild to run glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, 0) as it discovers a difference between original_filter and filter in resource when closing down browser. We then find out that whilst quad.nearest_neighbor indicates the desired filtering effect on the rendered quad, the resource.filter actually indicates the filtering algorithm on the resource inherently. To remove this error msg whilst maintaining the correctness of filtering algorithm applied on accelerated 2d canvas, we need to specify the resource filter to GL_NEAREST. Then the overriding mechanism about resource->original_filter and resource->filter in resource_provider.cc will be able to function correctly. In addition, I added GL_TEXTURE_MAG_FILTER as there is no reason why we only apply linear filtering on MIN_FILTER and not MAG_FILTER. BUG=692599 Review-Url: https://codereview.chromium.org/2758863003 Cr-Commit-Position: refs/heads/master@{#460488} Committed: https://chromium.googlesource.com/chromium/src/+/d49d131187ed4e0c3dd5124cdd6ba41cbc06a2a9

Patch Set 1 #

Patch Set 2 : m #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp View 1 3 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 13 (9 generated)
xlai (Olivia)
3 years, 8 months ago (2017-03-28 18:35:11 UTC) #4
Justin Novosad
lgtm
3 years, 8 months ago (2017-03-29 18:48:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2758863003/20001
3 years, 8 months ago (2017-03-29 19:01:35 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 19:28:13 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d49d131187ed4e0c3dd5124cdd6b...

Powered by Google App Engine
This is Rietveld 408576698