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

Side by Side Diff: content/common/gpu/gpu_messages.h

Issue 1324413003: Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove more memory alloc codes. Created 5 years, 2 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
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 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 gfx::SwapResult /* result */) 598 gfx::SwapResult /* result */)
599 599
600 // Tells the browser about updated parameters for vsync alignment. 600 // Tells the browser about updated parameters for vsync alignment.
601 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, 601 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters,
602 base::TimeTicks /* timebase */, 602 base::TimeTicks /* timebase */,
603 base::TimeDelta /* interval */) 603 base::TimeDelta /* interval */)
604 604
605 // Send to stub on surface visibility change. 605 // Send to stub on surface visibility change.
606 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) 606 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */)
607 607
608 // Sent to proxy when the gpu memory manager changes its memory allocation.
609 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation,
610 gpu::MemoryAllocation /* allocation */)
611
612 // Sent to stub when proxy is assigned a memory allocation changed callback.
613 IPC_MESSAGE_ROUTED1(
614 GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback,
615 bool /* has_callback */)
616
617 // Inserts a sync point into the channel. This is handled on the IO thread, so 608 // Inserts a sync point into the channel. This is handled on the IO thread, so
618 // can be expected to be reasonably fast, but the sync point is actually 609 // can be expected to be reasonably fast, but the sync point is actually
619 // retired in order with respect to the other calls. The sync point is shared 610 // retired in order with respect to the other calls. The sync point is shared
620 // across channels. 611 // across channels.
621 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_InsertSyncPoint, 612 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_InsertSyncPoint,
622 bool /* retire */, 613 bool /* retire */,
623 uint32 /* sync_point */) 614 uint32 /* sync_point */)
624 615
625 // Retires the sync point. Note: this message is not sent explicitly by the 616 // Retires the sync point. Note: this message is not sent explicitly by the
626 // renderer, but is synthesized by the GPU process. 617 // renderer, but is synthesized by the GPU process.
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 791 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
801 792
802 //------------------------------------------------------------------------------ 793 //------------------------------------------------------------------------------
803 // Accelerated JPEG Decoder Host Messages 794 // Accelerated JPEG Decoder Host Messages
804 // These messages are sent from the GPU process to Browser process. 795 // These messages are sent from the GPU process to Browser process.
805 // 796 //
806 // Report decode status. 797 // Report decode status.
807 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 798 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
808 int32, /* bitstream_buffer_id */ 799 int32, /* bitstream_buffer_id */
809 media::JpegDecodeAccelerator::Error /* error */) 800 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698