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

Issue 558083002: [cc] Add nearest neighbor filtering for TextureLayer. (Closed)

Created:
6 years, 3 months ago by jackhou1
Modified:
6 years ago
Reviewers:
danakj, jamesr, jschuh, piman
CC:
chromium-reviews, feature-media-reviews_chromium.org, cc-bugs_chromium.org, chrome-apps-syd-reviews_chromium.org, Justin Novosad, Stephen White, enne (OOO), piman, Ken Rockot(use gerrit already)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[cc] Add nearest neighbor filtering for TextureLayer. Blink side is here (depends on this CL): https://codereview.chromium.org/562583002/ This CL also depends on another blink side change here: https://codereview.chromium.org/699103002/ BUG=134040 Committed: https://crrev.com/10c9af41a73ac7db787d64344630f8200925cfe5 Cr-Commit-Position: refs/heads/master@{#306768}

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : Add nearest_neighbor field to TextureMailbox. #

Total comments: 12

Patch Set 4 : Address comments #

Patch Set 5 : Fix up existing tests. #

Patch Set 6 : Add nearest_neighbor to quads.mojom::TextureQuadState #

Patch Set 7 : Fix cc_messages_unittest.cc #

Patch Set 8 : Remove printfs, clean up CL. #

Total comments: 15

Patch Set 9 : Add test. #

Patch Set 10 : Change to WebExternalTextureLayer::setNearestNeighbor. #

Total comments: 6

Patch Set 11 : Address comments #

Total comments: 5

Patch Set 12 : Sync and rebase #

Patch Set 13 : Address comments #

Patch Set 14 : Sync and rebase #

Patch Set 15 : Address comments #

Patch Set 16 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -126 lines) Patch
M cc/blink/web_external_texture_layer_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M cc/blink/web_external_texture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M cc/layers/delegated_frame_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/heads_up_display_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/nine_patch_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +19 lines, -9 lines 0 comments Download
M cc/layers/painted_scrollbar_layer_impl.cc View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M cc/layers/texture_layer.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M cc/layers/texture_layer.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -0 lines 0 comments Download
M cc/layers/texture_layer_impl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M cc/layers/texture_layer_impl.cc View 1 2 3 4 5 6 7 4 chunks +9 lines, -1 line 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/ui_resource_layer_impl.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/video_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -2 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -2 lines 0 comments Download
M cc/output/gl_renderer_draw_cache.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/gl_renderer_draw_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +37 lines, -22 lines 0 comments Download
M cc/quads/texture_draw_quad.h View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M cc/quads/texture_draw_quad.cc View 1 2 5 chunks +13 lines, -5 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +133 lines, -66 lines 0 comments Download
M cc/resources/texture_mailbox.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M cc/resources/texture_mailbox.cc View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M content/common/cc_messages.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -1 line 0 comments Download
M mojo/converters/surfaces/surfaces_type_converters.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M mojo/converters/surfaces/tests/surface_unittest.cc View 1 2 3 4 5 4 chunks +6 lines, -2 lines 0 comments Download
M mojo/services/public/interfaces/surfaces/quads.mojom View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 37 (4 generated)
jackhou1
danakj, would you mind taking a look at this? The goal is to allow accelerated ...
6 years, 3 months ago (2014-09-11 08:33:50 UTC) #2
jackhou1
Ping.
6 years, 3 months ago (2014-09-15 06:23:01 UTC) #3
danakj
If you want the GLRenderer in the browser compositor to know the filter, you should ...
6 years, 3 months ago (2014-09-15 15:41:04 UTC) #4
jackhou1
PTAL The feature seems to work now, but the CL is not finished. Please ignore ...
6 years, 1 month ago (2014-10-28 04:44:06 UTC) #5
piman
https://codereview.chromium.org/558083002/diff/40001/cc/blink/web_external_texture_layer_impl.cc File cc/blink/web_external_texture_layer_impl.cc (right): https://codereview.chromium.org/558083002/diff/40001/cc/blink/web_external_texture_layer_impl.cc#newcode98 cc/blink/web_external_texture_layer_impl.cc:98: mailbox->set_nearest_neighbor(nearest_neighbor_); This should not be set indiscriminately, but based ...
6 years, 1 month ago (2014-10-28 05:09:51 UTC) #7
jackhou1
https://codereview.chromium.org/558083002/diff/40001/cc/blink/web_external_texture_layer_impl.cc File cc/blink/web_external_texture_layer_impl.cc (right): https://codereview.chromium.org/558083002/diff/40001/cc/blink/web_external_texture_layer_impl.cc#newcode98 cc/blink/web_external_texture_layer_impl.cc:98: mailbox->set_nearest_neighbor(nearest_neighbor_); On 2014/10/28 05:09:50, piman (Very slow to review) ...
6 years, 1 month ago (2014-10-29 00:12:25 UTC) #8
jackhou1
PTAL This depends on a minor change to WebExternalTextureMailbox.h: http://crrev.com/699103002
6 years, 1 month ago (2014-11-04 03:52:45 UTC) #9
piman
lgtm
6 years, 1 month ago (2014-11-04 04:48:03 UTC) #10
danakj
https://codereview.chromium.org/558083002/diff/140001/cc/blink/web_external_texture_layer_impl.cc File cc/blink/web_external_texture_layer_impl.cc (right): https://codereview.chromium.org/558083002/diff/140001/cc/blink/web_external_texture_layer_impl.cc#newcode68 cc/blink/web_external_texture_layer_impl.cc:68: ->SetNearestNeighbor(filter_level == SkPaint::kNone_FilterLevel); You have multiple ways of setting ...
6 years, 1 month ago (2014-11-04 16:02:42 UTC) #11
piman
https://codereview.chromium.org/558083002/diff/140001/cc/blink/web_external_texture_layer_impl.cc File cc/blink/web_external_texture_layer_impl.cc (right): https://codereview.chromium.org/558083002/diff/140001/cc/blink/web_external_texture_layer_impl.cc#newcode68 cc/blink/web_external_texture_layer_impl.cc:68: ->SetNearestNeighbor(filter_level == SkPaint::kNone_FilterLevel); On 2014/11/04 16:02:42, danakj wrote: > ...
6 years, 1 month ago (2014-11-04 21:14:35 UTC) #12
danakj
This looks like a solid change to me too. A couple of test requests for ...
6 years, 1 month ago (2014-11-04 21:30:24 UTC) #13
jackhou1
https://codereview.chromium.org/558083002/diff/140001/cc/blink/web_external_texture_layer_impl.h File cc/blink/web_external_texture_layer_impl.h (right): https://codereview.chromium.org/558083002/diff/140001/cc/blink/web_external_texture_layer_impl.h#newcode47 cc/blink/web_external_texture_layer_impl.h:47: virtual void setFilterLevel(SkPaint::FilterLevel filter_level); On 2014/11/04 16:02:42, danakj wrote: ...
6 years, 1 month ago (2014-11-12 03:35:17 UTC) #14
piman
https://codereview.chromium.org/558083002/diff/140001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/558083002/diff/140001/cc/resources/resource_provider.cc#newcode599 cc/resources/resource_provider.cc:599: mailbox.nearest_neighbor() ? GL_NEAREST : GL_LINEAR, On 2014/11/12 03:35:17, jackhou1 ...
6 years, 1 month ago (2014-11-12 04:43:26 UTC) #15
jackhou1
https://codereview.chromium.org/558083002/diff/140001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/558083002/diff/140001/cc/resources/resource_provider.cc#newcode1338 cc/resources/resource_provider.cc:1338: it->filter, On 2014/11/12 04:43:26, piman (Very slow to review) ...
6 years, 1 month ago (2014-11-12 05:05:54 UTC) #16
danakj
https://codereview.chromium.org/558083002/diff/140001/cc/blink/web_external_texture_layer_impl.h File cc/blink/web_external_texture_layer_impl.h (right): https://codereview.chromium.org/558083002/diff/140001/cc/blink/web_external_texture_layer_impl.h#newcode47 cc/blink/web_external_texture_layer_impl.h:47: virtual void setFilterLevel(SkPaint::FilterLevel filter_level); On 2014/11/12 03:35:17, jackhou1 wrote: ...
6 years, 1 month ago (2014-11-12 18:10:14 UTC) #17
jackhou1
On 2014/11/12 18:10:14, danakj wrote: > https://codereview.chromium.org/558083002/diff/140001/cc/blink/web_external_texture_layer_impl.h > File cc/blink/web_external_texture_layer_impl.h (right): > > https://codereview.chromium.org/558083002/diff/140001/cc/blink/web_external_texture_layer_impl.h#newcode47 > ...
6 years, 1 month ago (2014-11-13 06:02:39 UTC) #18
jackhou1
danakj, ping.
6 years, 1 month ago (2014-11-17 05:04:17 UTC) #19
danakj
https://codereview.chromium.org/558083002/diff/180001/cc/blink/web_external_texture_layer_impl.h File cc/blink/web_external_texture_layer_impl.h (right): https://codereview.chromium.org/558083002/diff/180001/cc/blink/web_external_texture_layer_impl.h#newcode14 cc/blink/web_external_texture_layer_impl.h:14: #include "third_party/skia/include/core/SkPaint.h" unused https://codereview.chromium.org/558083002/diff/180001/cc/output/gl_renderer_draw_cache.h File cc/output/gl_renderer_draw_cache.h (right): https://codereview.chromium.org/558083002/diff/180001/cc/output/gl_renderer_draw_cache.h#newcode36 cc/output/gl_renderer_draw_cache.h:36: ...
6 years, 1 month ago (2014-11-17 17:39:41 UTC) #20
jackhou1
https://codereview.chromium.org/558083002/diff/180001/cc/blink/web_external_texture_layer_impl.h File cc/blink/web_external_texture_layer_impl.h (right): https://codereview.chromium.org/558083002/diff/180001/cc/blink/web_external_texture_layer_impl.h#newcode14 cc/blink/web_external_texture_layer_impl.h:14: #include "third_party/skia/include/core/SkPaint.h" On 2014/11/17 17:39:41, danakj wrote: > unused ...
6 years, 1 month ago (2014-11-17 22:46:35 UTC) #21
danakj
https://codereview.chromium.org/558083002/diff/200001/cc/output/gl_renderer_draw_cache.cc File cc/output/gl_renderer_draw_cache.cc (right): https://codereview.chromium.org/558083002/diff/200001/cc/output/gl_renderer_draw_cache.cc#newcode10 cc/output/gl_renderer_draw_cache.cc:10: : program_id(0), nearest_neighbor(false) {} Oh I guess you'll need ...
6 years, 1 month ago (2014-11-18 16:17:05 UTC) #22
jackhou1
https://codereview.chromium.org/558083002/diff/200001/cc/output/gl_renderer_draw_cache.cc File cc/output/gl_renderer_draw_cache.cc (right): https://codereview.chromium.org/558083002/diff/200001/cc/output/gl_renderer_draw_cache.cc#newcode10 cc/output/gl_renderer_draw_cache.cc:10: : program_id(0), nearest_neighbor(false) {} On 2014/11/18 16:17:05, danakj wrote: ...
6 years, 1 month ago (2014-11-19 03:33:17 UTC) #23
danakj
https://codereview.chromium.org/558083002/diff/200001/cc/resources/resource_provider_unittest.cc File cc/resources/resource_provider_unittest.cc (right): https://codereview.chromium.org/558083002/diff/200001/cc/resources/resource_provider_unittest.cc#newcode2676 cc/resources/resource_provider_unittest.cc:2676: // The sampler will reset these because |nearest_neighbor| was ...
6 years, 1 month ago (2014-11-19 16:01:56 UTC) #24
jackhou1
On 2014/11/19 16:01:56, danakj wrote: > https://codereview.chromium.org/558083002/diff/200001/cc/resources/resource_provider_unittest.cc > File cc/resources/resource_provider_unittest.cc (right): > > https://codereview.chromium.org/558083002/diff/200001/cc/resources/resource_provider_unittest.cc#newcode2676 > ...
6 years ago (2014-12-01 06:42:02 UTC) #25
danakj
LGTM
6 years ago (2014-12-01 16:11:54 UTC) #26
jackhou1
jschuh, please review for OWNERS in content/common/ jamesr, please review for OWNERS in mojo/
6 years ago (2014-12-02 04:00:51 UTC) #28
jamesr
mojo/ lgtm (fyi the mojo/services/public code is maintained in the mojo repository so we'll have ...
6 years ago (2014-12-02 05:47:12 UTC) #29
jschuh
ipc security lgtm. notes: additional bool
6 years ago (2014-12-02 21:48:13 UTC) #30
jackhou1
On 2014/12/02 05:47:12, jamesr wrote: > mojo/ lgtm > > (fyi the mojo/services/public code is ...
6 years ago (2014-12-03 03:30:49 UTC) #31
jamesr
On 2014/12/03 03:30:49, jackhou1 wrote: > On 2014/12/02 05:47:12, jamesr wrote: > > mojo/ lgtm ...
6 years ago (2014-12-03 05:17:54 UTC) #32
jackhou1
On 2014/12/03 05:17:54, jamesr wrote: > On 2014/12/03 03:30:49, jackhou1 wrote: > > On 2014/12/02 ...
6 years ago (2014-12-03 05:26:33 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/558083002/300001
6 years ago (2014-12-04 05:22:23 UTC) #35
commit-bot: I haz the power
Committed patchset #16 (id:300001)
6 years ago (2014-12-04 05:24:54 UTC) #36
commit-bot: I haz the power
6 years ago (2014-12-04 05:25:38 UTC) #37
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/10c9af41a73ac7db787d64344630f8200925cfe5
Cr-Commit-Position: refs/heads/master@{#306768}

Powered by Google App Engine
This is Rietveld 408576698