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

Issue 8390018: Change GpuDataManager to use Observer notifications rather than callbacks (Closed)

Created:
9 years, 2 months ago by csilv
Modified:
9 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Change GpuDataManager to use Observer notifications rather than callbacks. This eliminates use of legacy callbacks and generally simplifies the implementation. Also migrate one instance of NewRunnableMethod to base::Bind(). BUG=98478 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108189

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 17

Patch Set 4 : Review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -87 lines) Patch
M chrome/browser/ui/webui/flash_ui.cc View 1 6 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/gpu_internals_ui.cc View 1 7 chunks +8 lines, -18 lines 0 comments Download
M chrome/browser/ui/webui/tracing_ui.cc View 1 7 chunks +8 lines, -19 lines 0 comments Download
M content/browser/gpu/gpu_data_manager.h View 1 2 3 6 chunks +27 lines, -12 lines 0 comments Download
M content/browser/gpu/gpu_data_manager.cc View 6 chunks +16 lines, -28 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
csilv
+jhawkins, +zmo for review
9 years, 2 months ago (2011-10-25 23:36:38 UTC) #1
James Hawkins
http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.cc File content/browser/gpu/gpu_data_manager.cc (right): http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.cc#newcode577 content/browser/gpu/gpu_data_manager.cc:577: base::Unretained(this))); Is base::Unretained() really needed here? The conversion is ...
9 years, 2 months ago (2011-10-25 23:36:51 UTC) #2
csilv
http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.cc File content/browser/gpu/gpu_data_manager.cc (right): http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.cc#newcode577 content/browser/gpu/gpu_data_manager.cc:577: base::Unretained(this))); On 2011/10/25 23:36:52, James Hawkins wrote: > Is ...
9 years, 2 months ago (2011-10-26 00:02:46 UTC) #3
Zhenyao Mo
LGTM after you address James's comment. http://codereview.chromium.org/8390018/diff/6002/chrome/browser/ui/webui/tracing_ui.cc File chrome/browser/ui/webui/tracing_ui.cc (right): http://codereview.chromium.org/8390018/diff/6002/chrome/browser/ui/webui/tracing_ui.cc#newcode187 chrome/browser/ui/webui/tracing_ui.cc:187: gpu_data_manager_->AddObserver(this); Since we ...
9 years, 2 months ago (2011-10-26 00:03:12 UTC) #4
csilv
Just a followup... I'm observing that most instances of Singletons disable ref-counting since due to ...
9 years, 2 months ago (2011-10-26 00:16:03 UTC) #5
csilv
http://codereview.chromium.org/8390018/diff/6002/chrome/browser/ui/webui/tracing_ui.cc File chrome/browser/ui/webui/tracing_ui.cc (right): http://codereview.chromium.org/8390018/diff/6002/chrome/browser/ui/webui/tracing_ui.cc#newcode187 chrome/browser/ui/webui/tracing_ui.cc:187: gpu_data_manager_->AddObserver(this); On 2011/10/26 00:03:12, Zhenyao Mo wrote: > Since ...
9 years, 2 months ago (2011-10-26 00:16:13 UTC) #6
zmo
On 2011/10/26 00:16:13, csilv wrote: > http://codereview.chromium.org/8390018/diff/6002/chrome/browser/ui/webui/tracing_ui.cc > File chrome/browser/ui/webui/tracing_ui.cc (right): > > http://codereview.chromium.org/8390018/diff/6002/chrome/browser/ui/webui/tracing_ui.cc#newcode187 > ...
9 years, 2 months ago (2011-10-26 00:18:45 UTC) #7
James Hawkins
http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.cc File content/browser/gpu/gpu_data_manager.cc (right): http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.cc#newcode577 content/browser/gpu/gpu_data_manager.cc:577: base::Unretained(this))); On 2011/10/26 00:02:47, csilv wrote: > On 2011/10/25 ...
9 years, 2 months ago (2011-10-26 00:21:29 UTC) #8
James Hawkins
http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.h File content/browser/gpu/gpu_data_manager.h (right): http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.h#newcode172 content/browser/gpu/gpu_data_manager.h:172: typedef ObserverListThreadSafe<GpuDataManager::Observer> On 2011/10/26 00:21:29, James Hawkins wrote: > ...
9 years, 2 months ago (2011-10-26 01:32:16 UTC) #9
csilv
http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.h File content/browser/gpu/gpu_data_manager.h (right): http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.h#newcode98 content/browser/gpu/gpu_data_manager.h:98: void AddObserver(Observer* observer); On 2011/10/26 00:21:29, James Hawkins wrote: ...
9 years, 2 months ago (2011-10-26 01:35:31 UTC) #10
James Hawkins
LGTM http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.h File content/browser/gpu/gpu_data_manager.h (right): http://codereview.chromium.org/8390018/diff/6002/content/browser/gpu/gpu_data_manager.h#newcode98 content/browser/gpu/gpu_data_manager.h:98: void AddObserver(Observer* observer); On 2011/10/26 01:35:31, csilv wrote: ...
9 years, 2 months ago (2011-10-26 01:45:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/csilv@chromium.org/8390018/7002
9 years, 2 months ago (2011-10-26 01:55:36 UTC) #12
commit-bot: I haz the power
Presubmit check for 8390018-7002 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 2 months ago (2011-10-26 01:55:39 UTC) #13
csilv
+apatrick for owners approval.
9 years, 1 month ago (2011-10-26 17:26:48 UTC) #14
csilv
ping apatrick
9 years, 1 month ago (2011-10-28 18:53:45 UTC) #15
csilv
+kbr for owner approval
9 years, 1 month ago (2011-11-01 00:01:06 UTC) #16
Ken Russell (switch to Gerrit)
9 years, 1 month ago (2011-11-01 05:59:05 UTC) #17
lgtm

Powered by Google App Engine
This is Rietveld 408576698