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

Issue 236313006: cc: Add initial GPU-to-GPU copy rasterizer implementation. (Closed)

Created:
6 years, 8 months ago by reveman
Modified:
6 years, 7 months ago
Reviewers:
vmpstr, piman, sky, boliu
CC:
chromium-reviews, creis+watch_chromium.org, nkostylev+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, oshima+watch_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

cc: Add initial GPU-to-GPU copy rasterizer implementation. This adds a derived RasterWorkerPool class that use a smaller resource pool for staging and initialize tile resources by copying the contents of a staging resource to a tile resource using CHROMIUM_copy_texture. Zero-copy is still used by default when map-image rasterizer is enabled using --enable-map-image. GPU-to-GPU copy rasterizer is used when --disable-zero-copy switch is provided in combination with --enable-map-image. This zero-copy setting is also added to about:flags. BUG=269808 TBR=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267455

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : #

Patch Set 4 : rebase #

Total comments: 6

Patch Set 5 : address review feedback #

Total comments: 4

Patch Set 6 : address review feedback #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Total comments: 5

Patch Set 9 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+539 lines, -52 lines) Patch
M android_webview/lib/main/aw_main_delegate.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cc/output/delegating_renderer.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
A cc/resources/image_copy_raster_worker_pool.h View 1 chunk +110 lines, -0 lines 0 comments Download
A cc/resources/image_copy_raster_worker_pool.cc View 1 1 chunk +260 lines, -0 lines 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 2 3 4 5 7 chunks +16 lines, -0 lines 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 2 3 4 5 7 chunks +18 lines, -1 line 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 chunks +60 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +10 lines, -4 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 5 6 7 4 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 4 chunks +3 lines, -2 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 4 chunks +3 lines, -2 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 5 chunks +10 lines, -7 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/compositor_switches.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ui/compositor/compositor_switches.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
reveman
6 years, 8 months ago (2014-04-22 17:41:08 UTC) #1
vmpstr
It's a little bit misleading that the flags seem to indicate that zero copy is ...
6 years, 8 months ago (2014-04-23 17:25:46 UTC) #2
reveman
https://codereview.chromium.org/236313006/diff/60001/cc/resources/image_copy_raster_worker_pool.cc File cc/resources/image_copy_raster_worker_pool.cc (right): https://codereview.chromium.org/236313006/diff/60001/cc/resources/image_copy_raster_worker_pool.cc#newcode197 cc/resources/image_copy_raster_worker_pool.cc:197: resource_pool_->ReleaseResource(resource.Pass()); On 2014/04/23 17:25:46, vmpstr wrote: > Will this ...
6 years, 8 months ago (2014-04-24 19:20:42 UTC) #3
vmpstr
lgtm + nits https://codereview.chromium.org/236313006/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/236313006/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode1215 cc/trees/layer_tree_host_impl.cc:1215: // We currently use hard-coded limits ...
6 years, 8 months ago (2014-04-25 19:05:40 UTC) #4
reveman
https://codereview.chromium.org/236313006/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/236313006/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode1215 cc/trees/layer_tree_host_impl.cc:1215: // We currently use hard-coded limits for staging pool ...
6 years, 8 months ago (2014-04-25 20:18:25 UTC) #5
reveman
I was able to clean this up a bit now that TEXTURE_RECTANGLE_ARB is supported by ...
6 years, 7 months ago (2014-04-30 19:01:09 UTC) #6
piman
lgtm
6 years, 7 months ago (2014-04-30 22:18:38 UTC) #7
vmpstr
still lgtm + a couple more nits https://codereview.chromium.org/236313006/diff/130001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/236313006/diff/130001/cc/trees/layer_tree_host_impl.cc#newcode1838 cc/trees/layer_tree_host_impl.cc:1838: bool use_zero_copy, ...
6 years, 7 months ago (2014-04-30 22:42:41 UTC) #8
boliu
android_webview and DeferredInitialize/ReleaseGL path lgtm
6 years, 7 months ago (2014-04-30 22:51:25 UTC) #9
reveman
https://codereview.chromium.org/236313006/diff/130001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/236313006/diff/130001/cc/trees/layer_tree_host_impl.cc#newcode1838 cc/trees/layer_tree_host_impl.cc:1838: bool use_zero_copy, On 2014/04/30 22:42:41, vmpstr wrote: > I ...
6 years, 7 months ago (2014-04-30 23:23:56 UTC) #10
reveman
6 years, 7 months ago (2014-04-30 23:26:12 UTC) #11
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 7 months ago (2014-04-30 23:26:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/236313006/150001
6 years, 7 months ago (2014-04-30 23:28:56 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-05-01 06:05:22 UTC) #14
Message was sent while issue was closed.
Change committed as 267455

Powered by Google App Engine
This is Rietveld 408576698