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

Side by Side Diff: content/common/gpu/image_transport_surface.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 | « content/common/gpu/gpu_messages.h ('k') | content/common/gpu/image_transport_surface.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_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void SendResizeView(const gfx::Size& size); 102 void SendResizeView(const gfx::Size& size);
103 103
104 // Whether or not we should execute more commands. 104 // Whether or not we should execute more commands.
105 void SetScheduled(bool is_scheduled); 105 void SetScheduled(bool is_scheduled);
106 106
107 void DeferToFence(base::Closure task); 107 void DeferToFence(base::Closure task);
108 108
109 // Make the surface's context current. 109 // Make the surface's context current.
110 bool MakeCurrent(); 110 bool MakeCurrent();
111 111
112 void Suspend();
113
112 private: 114 private:
113 gpu::GpuScheduler* Scheduler(); 115 gpu::GpuScheduler* Scheduler();
114 gpu::gles2::GLES2Decoder* Decoder(); 116 gpu::gles2::GLES2Decoder* Decoder();
115 117
116 // IPC::Message handlers. 118 // IPC::Message handlers.
117 void OnNewSurfaceACK(uint64 surface_handle, TransportDIB::Handle shm_handle); 119 void OnNewSurfaceACK(uint64 surface_handle, TransportDIB::Handle shm_handle);
118 void OnBuffersSwappedACK(); 120 void OnBuffersSwappedACK();
119 void OnPostSubBufferACK(); 121 void OnPostSubBufferACK();
120 void OnResizeViewACK(); 122 void OnResizeViewACK();
121 123
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 private: 166 private:
165 scoped_ptr<ImageTransportHelper> helper_; 167 scoped_ptr<ImageTransportHelper> helper_;
166 gfx::Size new_size_; 168 gfx::Size new_size_;
167 169
168 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 170 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
169 }; 171 };
170 172
171 #endif // defined(ENABLE_GPU) 173 #endif // defined(ENABLE_GPU)
172 174
173 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 175 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698