Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Issue 11571075: Move GpuMemoryManager::ClientState structure to its own class. (Closed)

Created:
8 years ago by ccameron
Modified:
7 years, 12 months ago
Reviewers:
greggman, jam, M-A Ruel
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, apatrick_chromium
Visibility:
Public.

Description

Move GpuMemoryManager::ClientState structure to its own class. Also clean up initialization path so that the GpuMemoryManager returns a GpuMemoryManagerClientState, and destroying that structure deletes the client. BUG=164947 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174591

Patch Set 1 #

Patch Set 2 : Use _s for private variables #

Patch Set 3 : Fix brace #

Total comments: 12

Patch Set 4 : Incorporate review feedback #

Patch Set 5 : Move function bodies to cc files #

Patch Set 6 : Fix ordering #

Patch Set 7 : Fix lint errors #

Patch Set 8 : Fix android build #

Patch Set 9 : Resolve against head #

Total comments: 3

Patch Set 10 : Add CONTENT_EXPORT #

Patch Set 11 : Add more CONTENT_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -321 lines) Patch
M content/common/gpu/gpu_command_buffer_stub.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -1 line 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -15 lines 0 comments Download
M content/common/gpu/gpu_memory_manager.h View 1 2 3 4 7 chunks +30 lines, -96 lines 0 comments Download
M content/common/gpu/gpu_memory_manager.cc View 1 2 3 4 5 6 7 17 chunks +76 lines, -97 lines 0 comments Download
A content/common/gpu/gpu_memory_manager_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +96 lines, -0 lines 0 comments Download
A content/common/gpu/gpu_memory_manager_client.cc View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_manager_unittest.cc View 1 2 3 20 chunks +71 lines, -84 lines 0 comments Download
M content/common/gpu/gpu_memory_tracking.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -28 lines 0 comments Download
A content/common/gpu/gpu_memory_tracking.cc View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
ccameron
This is the second half of the cleanup that came with the LRU cache.
8 years ago (2012-12-20 02:35:00 UTC) #1
greggman
lgtm https://codereview.chromium.org/11571075/diff/4001/content/common/gpu/gpu_memory_manager.cc File content/common/gpu/gpu_memory_manager.cc (right): https://codereview.chromium.org/11571075/diff/4001/content/common/gpu/gpu_memory_manager.cc#newcode179 content/common/gpu/gpu_memory_manager.cc:179: GpuMemoryManagerClientState* client_state = *it; since it doesn't appear ...
8 years ago (2012-12-20 07:59:59 UTC) #2
ccameron
Thanks!! https://codereview.chromium.org/11571075/diff/4001/content/common/gpu/gpu_memory_manager.cc File content/common/gpu/gpu_memory_manager.cc (right): https://codereview.chromium.org/11571075/diff/4001/content/common/gpu/gpu_memory_manager.cc#newcode179 content/common/gpu/gpu_memory_manager.cc:179: GpuMemoryManagerClientState* client_state = *it; On 2012/12/20 07:59:59, greggman ...
8 years ago (2012-12-20 19:41:01 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11571075/6003
8 years ago (2012-12-20 19:50:57 UTC) #4
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-20 20:07:20 UTC) #5
ccameron
Because this updates the content/content_common.gypi, I need a OWNER from content. Adding jam. The last ...
8 years ago (2012-12-20 23:30:37 UTC) #6
jam
gypi lgtm
8 years ago (2012-12-21 02:02:10 UTC) #7
ccameron
Thanks!!
8 years ago (2012-12-21 17:38:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11571075/4004
8 years ago (2012-12-21 17:38:18 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-21 17:56:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11571075/4004
8 years ago (2012-12-21 20:23:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11571075/21004
8 years ago (2012-12-21 20:25:20 UTC) #12
ccameron
Hmm, looks like some trybots aren't picking up the GYP changes. The android failure is ...
8 years ago (2012-12-21 20:26:09 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-21 20:51:14 UTC) #14
M-A Ruel
https://codereview.chromium.org/11571075/diff/24006/content/common/gpu/gpu_memory_manager_client.cc File content/common/gpu/gpu_memory_manager_client.cc (right): https://codereview.chromium.org/11571075/diff/24006/content/common/gpu/gpu_memory_manager_client.cc#newcode7 content/common/gpu/gpu_memory_manager_client.cc:7: #if defined(ENABLE_GPU) ^^^ here's the bug.
8 years ago (2012-12-21 21:58:59 UTC) #15
ccameron
I think it's something different. https://codereview.chromium.org/11571075/diff/24006/content/common/gpu/gpu_memory_manager_client.h File content/common/gpu/gpu_memory_manager_client.h (right): https://codereview.chromium.org/11571075/diff/24006/content/common/gpu/gpu_memory_manager_client.h#newcode8 content/common/gpu/gpu_memory_manager_client.h:8: #if defined(ENABLE_GPU) All of ...
8 years ago (2012-12-21 22:04:11 UTC) #16
M-A Ruel
https://codereview.chromium.org/11571075/diff/24006/content/common/gpu/gpu_memory_manager_unittest.cc File content/common/gpu/gpu_memory_manager_unittest.cc (right): https://codereview.chromium.org/11571075/diff/24006/content/common/gpu/gpu_memory_manager_unittest.cc#newcode1 content/common/gpu/gpu_memory_manager_unittest.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
8 years ago (2012-12-21 22:09:48 UTC) #17
ccameron
On 2012/12/21 22:09:48, Marc-Antoine Ruel wrote: > https://codereview.chromium.org/11571075/diff/24006/content/common/gpu/gpu_memory_manager_unittest.cc > File content/common/gpu/gpu_memory_manager_unittest.cc (right): > > https://codereview.chromium.org/11571075/diff/24006/content/common/gpu/gpu_memory_manager_unittest.cc#newcode1 ...
8 years ago (2012-12-21 22:41:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11571075/24007
8 years ago (2012-12-21 22:44:09 UTC) #19
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-21 23:11:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11571075/23004
8 years ago (2012-12-24 00:48:13 UTC) #21
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests
8 years ago (2012-12-24 03:20:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11571075/23004
7 years, 12 months ago (2012-12-24 22:52:54 UTC) #23
commit-bot: I haz the power
7 years, 12 months ago (2012-12-24 23:34:47 UTC) #24
Message was sent while issue was closed.
Change committed as 174591

Powered by Google App Engine
This is Rietveld 408576698