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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc

Issue 9702081: Splitting GpuMemoryAllocation into two parts: for renderer and browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding unittests for GpuMemoryAllocation comparison functions since they have become not as trivial. Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index 9ec701980984338df696a3f9c6c5512401893b3a..863f07c3bd8e851f028d658599daf677b3234c87 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -1162,10 +1162,12 @@ void WebGraphicsContext3DCommandBufferImpl::OnSwapBuffersComplete() {
}
void WebGraphicsContext3DCommandBufferImpl::OnMemoryAllocationChanged(
- const GpuMemoryAllocation& allocation) {
+ const GpuMemoryAllocationForRenderer& allocation) {
if (memory_allocation_changed_callback_)
memory_allocation_changed_callback_->onMemoryAllocationChanged(
- allocation.gpu_resource_size_in_bytes);
+ WebKit::WebGraphicsMemoryAllocation(
+ allocation.gpu_resource_size_in_bytes,
+ allocation.suggest_have_backbuffer));
}
void WebGraphicsContext3DCommandBufferImpl::setErrorMessageCallback(
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698