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

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

Issue 1412923004: Revert of Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 gfx::SwapResult /* result */) 618 gfx::SwapResult /* result */)
619 619
620 // Tells the browser about updated parameters for vsync alignment. 620 // Tells the browser about updated parameters for vsync alignment.
621 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, 621 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters,
622 base::TimeTicks /* timebase */, 622 base::TimeTicks /* timebase */,
623 base::TimeDelta /* interval */) 623 base::TimeDelta /* interval */)
624 624
625 // Send to stub on surface visibility change. 625 // Send to stub on surface visibility change.
626 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) 626 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */)
627 627
628 // Sent to proxy when the gpu memory manager changes its memory allocation.
629 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation,
630 gpu::MemoryAllocation /* allocation */)
631
632 // Sent to stub when proxy is assigned a memory allocation changed callback.
633 IPC_MESSAGE_ROUTED1(
634 GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback,
635 bool /* has_callback */)
636
628 // Inserts a sync point into the channel. This is handled on the IO thread, so 637 // Inserts a sync point into the channel. This is handled on the IO thread, so
629 // can be expected to be reasonably fast, but the sync point is actually 638 // can be expected to be reasonably fast, but the sync point is actually
630 // retired in order with respect to the other calls. The sync point is shared 639 // retired in order with respect to the other calls. The sync point is shared
631 // across channels. 640 // across channels.
632 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_InsertSyncPoint, 641 IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_InsertSyncPoint,
633 bool /* retire */, 642 bool /* retire */,
634 uint32 /* sync_point */) 643 uint32 /* sync_point */)
635 644
636 // Retires the sync point. 645 // Retires the sync point.
637 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_RetireSyncPoint, 646 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_RetireSyncPoint,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 821 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
813 822
814 //------------------------------------------------------------------------------ 823 //------------------------------------------------------------------------------
815 // Accelerated JPEG Decoder Host Messages 824 // Accelerated JPEG Decoder Host Messages
816 // These messages are sent from the GPU process to Browser process. 825 // These messages are sent from the GPU process to Browser process.
817 // 826 //
818 // Report decode status. 827 // Report decode status.
819 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 828 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
820 int32, /* bitstream_buffer_id */ 829 int32, /* bitstream_buffer_id */
821 media::JpegDecodeAccelerator::Error /* error */) 830 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_manager_unittest.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698