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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 8625003: Revert 111040 - Reland 110355 - Use shared D3D9 texture to transport the compositor's backing buf... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.h
===================================================================
--- content/common/gpu/gpu_command_buffer_stub.h (revision 111041)
+++ content/common/gpu/gpu_command_buffer_stub.h (working copy)
@@ -65,9 +65,6 @@
// Whether this command buffer can currently handle IPC messages.
bool IsScheduled();
- // Set the swap interval according to the command line.
- void SetSwapInterval();
-
gpu::gles2::GLES2Decoder* decoder() const { return decoder_.get(); }
gpu::GpuScheduler* scheduler() const { return scheduler_.get(); }
@@ -81,6 +78,8 @@
// to the same renderer process.
int32 route_id() const { return route_id_; }
+ void ViewResized();
+
gfx::GpuPreference gpu_preference() { return gpu_preference_; }
private:
@@ -118,11 +117,22 @@
void OnSetSurfaceVisible(bool visible);
+#if defined(OS_MACOSX)
+ void OnSwapBuffers();
+
+ // Returns the id of the current surface that is being rendered to
+ // (or 0 if no such surface has been created).
+ uint64 GetSurfaceId();
+#endif
+
void OnCommandProcessed();
void OnParseError();
+ void OnResize(gfx::Size size);
void ReportState();
+ void SetSwapInterval();
+
// The lifetime of objects of this class is managed by a GpuChannel. The
// GpuChannels destroy all the GpuCommandBufferStubs that they own when they
// are destroyed. So a raw pointer is safe.
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698