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

Issue 234403005: cc: Add CopyResource function to ResourceProvider API. (Closed)

Created:
6 years, 8 months ago by reveman
Modified:
6 years, 8 months ago
Reviewers:
piman
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Add CopyResource function to ResourceProvider API. This provides an efficient mechanism for copying a resource. Source and destination resources must have matching dimensions and format. Source resource can be backed by an image but destination cannot. CopyResource creates the appropritate read lock fence to prevent unsafe access to source image before the operation has completed. Also moves the toggle of frame based read lock fences out of the ResourcePool to not conflict with the read lock fences needed for CopyResource. BUG=269808 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263761

Patch Set 1 #

Total comments: 13

Patch Set 2 : address review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -11 lines) Patch
M cc/resources/image_raster_worker_pool.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/resources/resource_pool.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/resource_pool.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M cc/resources/resource_provider.h View 1 3 chunks +8 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 8 chunks +95 lines, -3 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 chunk +127 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
reveman
This is a prerequisite to gpu-to-gpu copy tile resource initialization. See https://codereview.chromium.org/236313006/ for more context.
6 years, 8 months ago (2014-04-14 18:24:22 UTC) #1
piman
I wonder about the ReadLockFences... Outside of that, just nits. https://codereview.chromium.org/234403005/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/234403005/diff/1/cc/resources/resource_provider.cc#newcode2234 ...
6 years, 8 months ago (2014-04-14 18:39:34 UTC) #2
reveman
PTAL https://codereview.chromium.org/234403005/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/234403005/diff/1/cc/resources/resource_provider.cc#newcode2234 cc/resources/resource_provider.cc:2234: DCHECK(ReadLockFenceHasPassed(dest_resource)); On 2014/04/14 18:39:34, piman wrote: > Do ...
6 years, 8 months ago (2014-04-14 19:24:09 UTC) #3
piman
lgtm https://codereview.chromium.org/234403005/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/234403005/diff/1/cc/resources/resource_provider.cc#newcode2234 cc/resources/resource_provider.cc:2234: DCHECK(ReadLockFenceHasPassed(dest_resource)); On 2014/04/14 19:24:09, reveman wrote: > On ...
6 years, 8 months ago (2014-04-14 19:34:35 UTC) #4
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 8 months ago (2014-04-14 19:44:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/234403005/20001
6 years, 8 months ago (2014-04-14 19:45:21 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-14 21:00:47 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-14 21:00:47 UTC) #8
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 8 months ago (2014-04-14 21:11:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/234403005/20001
6 years, 8 months ago (2014-04-14 21:12:38 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-14 22:23:03 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-14 22:23:03 UTC) #12
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 8 months ago (2014-04-14 22:34:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/234403005/20001
6 years, 8 months ago (2014-04-14 22:36:07 UTC) #14
commit-bot: I haz the power
6 years, 8 months ago (2014-04-15 00:57:18 UTC) #15
Message was sent while issue was closed.
Change committed as 263761

Powered by Google App Engine
This is Rietveld 408576698