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

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: Created 7 years, 5 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 547
548 void CommandBufferProxyImpl::SendManagedMemoryStats( 548 void CommandBufferProxyImpl::SendManagedMemoryStats(
549 const GpuManagedMemoryStats& stats) { 549 const GpuManagedMemoryStats& stats) {
550 if (last_state_.error != gpu::error::kNoError) 550 if (last_state_.error != gpu::error::kNoError)
551 return; 551 return;
552 552
553 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_, 553 Send(new GpuCommandBufferMsg_SendClientManagedMemoryStats(route_id_,
554 stats)); 554 stats));
555 } 555 }
556 556
557 gfx::GpuMemoryBuffer* CommandBufferProxyImpl::CreateGpuMemoryBuffer(
558 size_t width,
559 size_t height,
560 unsigned internalformat,
561 int32* id) {
562 NOTREACHED();
563 return NULL;
564 }
565
566 void CommandBufferProxyImpl::DestroyGpuMemoryBuffer(int32 id) {
567 NOTREACHED();
568 }
569
557 } // namespace content 570 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698