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

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.cc

Issue 20017005: gpu: Refactor GpuMemoryBuffer framework for multi-process support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add GpuControl interface Created 7 years, 4 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
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/client/command_buffer_proxy_impl.h" 5 #include "content/common/gpu/client/command_buffer_proxy_impl.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 546
547 void CommandBufferProxyImpl::SendManagedMemoryStats( 547 void CommandBufferProxyImpl::SendManagedMemoryStats(
548 const GpuManagedMemoryStats& stats) { 548 const GpuManagedMemoryStats& stats) {
549 if (last_state_.error != gpu::error::kNoError) 549 if (last_state_.error != gpu::error::kNoError)
550 return; 550 return;
551 551
552 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, 552 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_,
553 stats)); 553 stats));
554 } 554 }
555 555
556 gfx::GpuMemoryBuffer* CommandBufferProxyImpl::CreateGpuMemoryBuffer(
557 size_t width,
558 size_t height,
559 unsigned internalformat,
560 int32* id) {
561 NOTREACHED();
562 return NULL;
563 }
564
565 void CommandBufferProxyImpl::DestroyGpuMemoryBuffer(int32 id) {
566 NOTREACHED();
567 }
568
556 } // namespace content 569 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698