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

Issue 11667030: Add GPU memory usage contents browser test (Closed)

Created:
7 years, 12 months ago by ccameron
Modified:
7 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, kkania, jam, apatrick_chromium, chrome-speed-team+watch_google.com, robertshield, darin-cc_chromium.org
Visibility:
Public.

Description

Add a pass/fail test to verify that GPU memory usage doesn't grow beyond an acceptable level when using CSS (managed memory) and WebGL (unmanaged memory). BUG=135525 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175753

Patch Set 1 #

Total comments: 1

Patch Set 2 : Further clean up tests #

Patch Set 3 : More cleanup #

Patch Set 4 : Parameterize memory use through JS call #

Patch Set 5 : Remove extraneous comments #

Total comments: 16

Patch Set 6 : Change to be a content browser test #

Patch Set 7 : Contents browser test ready for review #

Total comments: 16

Patch Set 8 : Incorporate review feedback #

Patch Set 9 : Remove unused file #

Total comments: 8

Patch Set 10 : Incorporate review feedback #

Total comments: 16

Patch Set 11 : Incorporate review feedback #

Patch Set 12 : Correct limit call #

Patch Set 13 : Remove controversial functionality #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -1 line) Patch
A content/browser/gpu/gpu_memory_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +178 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_manager.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/gpu_memory_stats.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/common/gpu_memory_stats.cc View 1 chunk +3 lines, -1 line 0 comments Download
A content/test/data/gpu/mem_css3d.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +52 lines, -0 lines 0 comments Download
A content/test/data/gpu/mem_webgl.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +136 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
ccameron
https://codereview.chromium.org/11667030/diff/1/chrome/test/perf/gpu_memory_test.cc File chrome/test/perf/gpu_memory_test.cc (right): https://codereview.chromium.org/11667030/diff/1/chrome/test/perf/gpu_memory_test.cc#newcode59 chrome/test/perf/gpu_memory_test.cc:59: if (!automation()->GetBrowserWindow(0)->SendJSONRequest( To get memory information from the test, ...
7 years, 12 months ago (2012-12-29 00:25:00 UTC) #1
ccameron
I added some comments in areas that I'm structurally unsure of. If those are sane, ...
7 years, 11 months ago (2013-01-03 19:07:56 UTC) #2
vangelis
https://codereview.chromium.org/11667030/diff/8002/chrome/test/data/gpu/mem_css3d.html File chrome/test/data/gpu/mem_css3d.html (right): https://codereview.chromium.org/11667030/diff/8002/chrome/test/data/gpu/mem_css3d.html#newcode33 chrome/test/data/gpu/mem_css3d.html:33: block.style.WebkitTransform = "rotateX(-" + i + "deg)"; Does this ...
7 years, 11 months ago (2013-01-03 20:26:14 UTC) #3
Zhenyao Mo
https://codereview.chromium.org/11667030/diff/8002/chrome/test/gpu/gpu_memory_test.cc File chrome/test/gpu/gpu_memory_test.cc (right): https://codereview.chromium.org/11667030/diff/8002/chrome/test/gpu/gpu_memory_test.cc#newcode30 chrome/test/gpu/gpu_memory_test.cc:30: class GpuMemoryTest : public UITest { Does this truly ...
7 years, 11 months ago (2013-01-03 20:27:07 UTC) #4
nduca
Can you make this a browser test? Better yet, can it be a content browser ...
7 years, 11 months ago (2013-01-03 20:59:56 UTC) #5
ccameron
I've converted this to be a browser test. It still has some issues, so I've ...
7 years, 11 months ago (2013-01-04 21:52:34 UTC) #6
ccameron
This should be ready for review now. I used a somewhat weak condition to determine ...
7 years, 11 months ago (2013-01-05 02:48:41 UTC) #7
nduca
not fully done reading the patch but rough suggestion is a few smaller patches since ...
7 years, 11 months ago (2013-01-05 05:14:42 UTC) #8
ccameron
Thanks!! https://codereview.chromium.org/11667030/diff/16001/content/browser/gpu/gpu_memory_test.cc File content/browser/gpu/gpu_memory_test.cc (right): https://codereview.chromium.org/11667030/diff/16001/content/browser/gpu/gpu_memory_test.cc#newcode215 content/browser/gpu/gpu_memory_test.cc:215: IN_PROC_BROWSER_TEST_F(GpuMemoryTest, Simple) { On 2013/01/05 05:14:42, nduca wrote: ...
7 years, 11 months ago (2013-01-07 21:36:34 UTC) #9
Zhenyao Mo
LGTM. https://codereview.chromium.org/11667030/diff/20011/content/browser/gpu/gpu_memory_test.cc File content/browser/gpu/gpu_memory_test.cc (right): https://codereview.chromium.org/11667030/diff/20011/content/browser/gpu/gpu_memory_test.cc#newcode14 content/browser/gpu/gpu_memory_test.cc:14: #include "content/public/browser/notification_types.h" Are these two notification* header needed? ...
7 years, 11 months ago (2013-01-07 22:56:07 UTC) #10
ccameron
Thanks!! https://codereview.chromium.org/11667030/diff/20011/content/browser/gpu/gpu_memory_test.cc File content/browser/gpu/gpu_memory_test.cc (right): https://codereview.chromium.org/11667030/diff/20011/content/browser/gpu/gpu_memory_test.cc#newcode14 content/browser/gpu/gpu_memory_test.cc:14: #include "content/public/browser/notification_types.h" On 2013/01/07 22:56:07, Zhenyao Mo wrote: ...
7 years, 11 months ago (2013-01-07 23:20:35 UTC) #11
ccameron
Adding piman for OWNER review of content/ Adding cdn for OWNER (security) review of gpu_messages.h
7 years, 11 months ago (2013-01-07 23:27:31 UTC) #12
piman
https://codereview.chromium.org/11667030/diff/24001/content/browser/gpu/gpu_memory_test.cc File content/browser/gpu/gpu_memory_test.cc (right): https://codereview.chromium.org/11667030/diff/24001/content/browser/gpu/gpu_memory_test.cc#newcode24 content/browser/gpu/gpu_memory_test.cc:24: // and extra 16MB of wiggle-room for over-allocation. nit: ...
7 years, 11 months ago (2013-01-08 00:04:17 UTC) #13
ccameron
Thanks! Updated. We should discuss how to flush out all of the pending memory changes ...
7 years, 11 months ago (2013-01-08 00:41:23 UTC) #14
ccameron
I discussed this a bit with piman, and we're going to set a lower timeout ...
7 years, 11 months ago (2013-01-08 01:19:03 UTC) #15
nduca
A substantial portion of me looks at this waiting and raffing and says "look, this ...
7 years, 11 months ago (2013-01-08 10:12:38 UTC) #16
ccameron
On 2013/01/08 10:12:38, nduca wrote: > A substantial portion of me looks at this waiting ...
7 years, 11 months ago (2013-01-08 16:54:39 UTC) #17
nduca
When you're faced with that sort of feedback, the correct thing to do is not ...
7 years, 11 months ago (2013-01-08 18:44:46 UTC) #18
ccameron
On 2013/01/08 18:44:46, nduca wrote: > When you're faced with that sort of feedback, the ...
7 years, 11 months ago (2013-01-08 19:28:24 UTC) #19
ccameron
I've trimmed this down with the goal of getting the basics checked in, then iterating ...
7 years, 11 months ago (2013-01-08 20:34:12 UTC) #20
piman
LGTM as is
7 years, 11 months ago (2013-01-08 20:58:58 UTC) #21
nduca
lgtmnomnomnomnom
7 years, 11 months ago (2013-01-08 21:12:11 UTC) #22
Cris Neckar
IPC security audit LGTM
7 years, 11 months ago (2013-01-08 21:23:48 UTC) #23
ccameron
Thanks!!
7 years, 11 months ago (2013-01-08 21:25:10 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/11667030/28001
7 years, 11 months ago (2013-01-09 00:39:33 UTC) #25
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-09 03:02:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/11667030/28001
7 years, 11 months ago (2013-01-09 03:25:14 UTC) #27
commit-bot: I haz the power
7 years, 11 months ago (2013-01-09 09:42:54 UTC) #28
Message was sent while issue was closed.
Change committed as 175753

Powered by Google App Engine
This is Rietveld 408576698