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

Issue 807193005: cc: cc_perftest was crashing due to lack of GrContext (Closed)

Created:
6 years ago by hendrikw
Modified:
6 years ago
Reviewers:
tfarina, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: cc_perftest was crashing due to lack of GrContext TileTaskWorkerPoolPerfTests/TileTaskWorkerPoolPerfTest.ScheduleTasks/3 Failed because GrContext was returning nullptr BUG= Committed: https://crrev.com/5d9960e73600c3a8e8486753b7c1fac330d3b002 Cr-Commit-Position: refs/heads/master@{#309330}

Patch Set 1 #

Total comments: 5

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
M cc/resources/tile_task_worker_pool_perftest.cc View 1 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
hendrikw
PTAL
6 years ago (2014-12-20 00:57:01 UTC) #2
tfarina
https://codereview.chromium.org/807193005/diff/1/cc/resources/tile_task_worker_pool_perftest.cc File cc/resources/tile_task_worker_pool_perftest.cc (right): https://codereview.chromium.org/807193005/diff/1/cc/resources/tile_task_worker_pool_perftest.cc#newcode81 cc/resources/tile_task_worker_pool_perftest.cc:81: class GrContext* GrContext() override { class GrContext? I bet ...
6 years ago (2014-12-20 00:59:25 UTC) #3
vmpstr
lgtm when tfarina is happy with it. https://codereview.chromium.org/807193005/diff/1/cc/resources/tile_task_worker_pool_perftest.cc File cc/resources/tile_task_worker_pool_perftest.cc (right): https://codereview.chromium.org/807193005/diff/1/cc/resources/tile_task_worker_pool_perftest.cc#newcode85 cc/resources/tile_task_worker_pool_perftest.cc:85: auto null_interface ...
6 years ago (2014-12-20 01:17:19 UTC) #4
hendrikw
On 2014/12/20 00:59:25, tfarina wrote: > https://codereview.chromium.org/807193005/diff/1/cc/resources/tile_task_worker_pool_perftest.cc > File cc/resources/tile_task_worker_pool_perftest.cc (right): > > https://codereview.chromium.org/807193005/diff/1/cc/resources/tile_task_worker_pool_perftest.cc#newcode81 > ...
6 years ago (2014-12-20 01:22:32 UTC) #5
tfarina
lgtm
6 years ago (2014-12-20 01:45:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/807193005/20001
6 years ago (2014-12-20 02:42:34 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-20 03:37:44 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/5d9960e73600c3a8e8486753b7c1fac330d3b002 Cr-Commit-Position: refs/heads/master@{#309330}
6 years ago (2014-12-20 03:38:36 UTC) #11
danakj
https://codereview.chromium.org/807193005/diff/1/cc/resources/tile_task_worker_pool_perftest.cc File cc/resources/tile_task_worker_pool_perftest.cc (right): https://codereview.chromium.org/807193005/diff/1/cc/resources/tile_task_worker_pool_perftest.cc#newcode85 cc/resources/tile_task_worker_pool_perftest.cc:85: auto null_interface = skia::AdoptRef(GrGLCreateNullInterface()); On 2014/12/20 01:17:18, vmpstr wrote: ...
6 years ago (2014-12-20 06:45:00 UTC) #12
vmpstr
6 years ago (2014-12-20 08:28:48 UTC) #13
Message was sent while issue was closed.
On 2014/12/20 06:45:00, danakj wrote:
>
https://codereview.chromium.org/807193005/diff/1/cc/resources/tile_task_worke...
> File cc/resources/tile_task_worker_pool_perftest.cc (right):
> 
>
https://codereview.chromium.org/807193005/diff/1/cc/resources/tile_task_worke...
> cc/resources/tile_task_worker_pool_perftest.cc:85: auto null_interface =
> skia::AdoptRef(GrGLCreateNullInterface());
> On 2014/12/20 01:17:18, vmpstr wrote:
> > On 2014/12/20 00:59:25, tfarina wrote:
> > > s/auto/skia::RefPtr<GrContext> ?
> > 
> > FWIW, It's as common knowledge that skia::AdoptRef will return a
skia::RefPtr,
> > as it is common knowledge that skia::RefPtr is a smart pointer. On top of it
> the
> > only use of "null_interface" here is to reinterpret_cast it to something
other
> > than GrContext. All in all "skia::RefPtr<GrContext>" adds very little
> > information over "auto" here.
> > 
> > But I think the complaining ship has sailed for me already :)
> 
> I think "don't use auto for smart pointers" is a simple rule and avoids having
> to worry if a case is okay and why. So I'd like if we can stick with that.

sgtm

Powered by Google App Engine
This is Rietveld 408576698