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

Side by Side Diff: content/browser/gpu/gpu_process_host_ui_shim.h

Issue 9303009: Add IPC allowing GPU process to tell browser process to temporarily drop a front buffer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
7 #pragma once 7 #pragma once
8 8
9 // This class lives on the UI thread and supports classes like the 9 // This class lives on the UI thread and supports classes like the
10 // BackingStoreProxy, which must live on the UI thread. The IO thread 10 // BackingStoreProxy, which must live on the UI thread. The IO thread
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 int32 route_id, 87 int32 route_id,
88 gfx::Size size); 88 gfx::Size size);
89 #endif 89 #endif
90 90
91 void OnGraphicsInfoCollected(const content::GPUInfo& gpu_info); 91 void OnGraphicsInfoCollected(const content::GPUInfo& gpu_info);
92 92
93 void OnAcceleratedSurfaceBuffersSwapped( 93 void OnAcceleratedSurfaceBuffersSwapped(
94 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); 94 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params);
95 void OnAcceleratedSurfacePostSubBuffer( 95 void OnAcceleratedSurfacePostSubBuffer(
96 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params); 96 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params);
97 void OnAcceleratedSurfaceSuspend(int32 surface_id);
97 98
98 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 99 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
99 void OnAcceleratedSurfaceNew( 100 void OnAcceleratedSurfaceNew(
100 const GpuHostMsg_AcceleratedSurfaceNew_Params& params); 101 const GpuHostMsg_AcceleratedSurfaceNew_Params& params);
101 #endif 102 #endif
102 103
103 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 104 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
104 void OnAcceleratedSurfaceRelease( 105 void OnAcceleratedSurfaceRelease(
105 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); 106 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params);
106 #endif 107 #endif
107 108
108 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. 109 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
109 int host_id_; 110 int host_id_;
110 }; 111 };
111 112
112 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 113 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698