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

Side by Side Diff: content/common/gpu/gpu_memory_manager.cc

Issue 10913240: NOT FOR REVIEW - gpu memmgr context lost prototype (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/gl/gl_context.cc » ('j') | 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 4
5 #include "content/common/gpu/gpu_memory_manager.h" 5 #include "content/common/gpu/gpu_memory_manager.h"
6 6
7 #if defined(ENABLE_GPU) 7 #if defined(ENABLE_GPU)
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 &stub_memory_stats_for_last_manage_, 308 &stub_memory_stats_for_last_manage_,
309 stubs_with_surface_foreground, 309 stubs_with_surface_foreground,
310 GpuMemoryAllocation(stubs_with_surface_foreground_allocation, 310 GpuMemoryAllocation(stubs_with_surface_foreground_allocation,
311 GpuMemoryAllocation::kHasFrontbuffer | 311 GpuMemoryAllocation::kHasFrontbuffer |
312 GpuMemoryAllocation::kHasBackbuffer), 312 GpuMemoryAllocation::kHasBackbuffer),
313 true); 313 true);
314 314
315 AssignMemoryAllocations( 315 AssignMemoryAllocations(
316 &stub_memory_stats_for_last_manage_, 316 &stub_memory_stats_for_last_manage_,
317 stubs_with_surface_background, 317 stubs_with_surface_background,
318 GpuMemoryAllocation(0, GpuMemoryAllocation::kHasFrontbuffer), 318 GpuMemoryAllocation(0,
319 false); 319 GpuMemoryAllocation::kHasFrontbuffer |
320 GpuMemoryAllocation::kHasBackbuffer),
321 true);
320 322
321 AssignMemoryAllocations( 323 AssignMemoryAllocations(
322 &stub_memory_stats_for_last_manage_, 324 &stub_memory_stats_for_last_manage_,
323 stubs_with_surface_hibernated, 325 stubs_with_surface_hibernated,
324 GpuMemoryAllocation(0, GpuMemoryAllocation::kHasNoBuffers), 326 GpuMemoryAllocation(0, GpuMemoryAllocation::kHasNoBuffers),
325 false); 327 false);
326 328
327 AssignMemoryAllocations( 329 AssignMemoryAllocations(
328 &stub_memory_stats_for_last_manage_, 330 &stub_memory_stats_for_last_manage_,
329 stubs_without_surface_foreground, 331 stubs_without_surface_foreground,
330 GpuMemoryAllocation(GetMinimumTabAllocation(), 332 GpuMemoryAllocation(GetMinimumTabAllocation(),
331 GpuMemoryAllocation::kHasNoBuffers), 333 GpuMemoryAllocation::kHasNoBuffers),
332 true); 334 true);
333 335
334 AssignMemoryAllocations( 336 AssignMemoryAllocations(
335 &stub_memory_stats_for_last_manage_, 337 &stub_memory_stats_for_last_manage_,
336 stubs_without_surface_background, 338 stubs_without_surface_background,
337 GpuMemoryAllocation(GetMinimumTabAllocation(), 339 GpuMemoryAllocation(GetMinimumTabAllocation(),
338 GpuMemoryAllocation::kHasNoBuffers), 340 GpuMemoryAllocation::kHasNoBuffers),
339 false); 341 false);
340 342
341 AssignMemoryAllocations( 343 AssignMemoryAllocations(
342 &stub_memory_stats_for_last_manage_, 344 &stub_memory_stats_for_last_manage_,
343 stubs_without_surface_hibernated, 345 stubs_without_surface_hibernated,
344 GpuMemoryAllocation(0, GpuMemoryAllocation::kHasNoBuffers), 346 GpuMemoryAllocation(0, GpuMemoryAllocation::kHasNoBuffers),
345 false); 347 false);
346 } 348 }
347 349
348 #endif 350 #endif
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698