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

Side by Side Diff: content/test/gpu/gpu_tests/memory.py

Issue 308743005: Lobotomize the GPU memory manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update OWNER Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/gpu/gpu_memory_manager_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import memory_expectations 4 import memory_expectations
5 5
6 from telemetry import test 6 from telemetry import test
7 from telemetry.page import page_test 7 from telemetry.page import page_test
8 from telemetry.core.timeline import counter 8 from telemetry.core.timeline import counter
9 from telemetry.core.timeline import model 9 from telemetry.core.timeline import model
10 10
11 MEMORY_LIMIT_MB = 256 11 MEMORY_LIMIT_MB = 192
12 SINGLE_TAB_LIMIT_MB = 128 12 SINGLE_TAB_LIMIT_MB = 192
13 WIGGLE_ROOM_MB = 4 13 WIGGLE_ROOM_MB = 8
14 14
15 test_harness_script = r""" 15 test_harness_script = r"""
16 var domAutomationController = {}; 16 var domAutomationController = {};
17 domAutomationController._finished = false; 17 domAutomationController._finished = false;
18 18
19 domAutomationController.send = function(msg) { 19 domAutomationController.send = function(msg) {
20 // This should wait until all effects of memory management complete. 20 // This should wait until all effects of memory management complete.
21 // We will need to wait until all 21 // We will need to wait until all
22 // 1. pending commits from the main thread to the impl thread in the 22 // 1. pending commits from the main thread to the impl thread in the
23 // compositor complete (for visible compositors). 23 // compositor complete (for visible compositors).
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 page_set = 'page_sets/memory_tests.py' 95 page_set = 'page_sets/memory_tests.py'
96 96
97 def CreateExpectations(self, page_set): 97 def CreateExpectations(self, page_set):
98 return memory_expectations.MemoryExpectations() 98 return memory_expectations.MemoryExpectations()
99 99
100 def CreatePageSet(self, options): 100 def CreatePageSet(self, options):
101 page_set = super(Memory, self).CreatePageSet(options) 101 page_set = super(Memory, self).CreatePageSet(options)
102 for page in page_set.pages: 102 for page in page_set.pages:
103 page.script_to_evaluate_on_commit = test_harness_script 103 page.script_to_evaluate_on_commit = test_harness_script
104 return page_set 104 return page_set
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698