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

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.h

Issue 10510013: GPU: Adding sync points for cross-channel synchronization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years, 6 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/common/gpu/client/command_buffer_proxy_impl.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_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // IPC::Channel::Listener implementation: 58 // IPC::Channel::Listener implementation:
59 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 59 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
60 virtual void OnChannelError() OVERRIDE; 60 virtual void OnChannelError() OVERRIDE;
61 61
62 // CommandBufferProxy implementation: 62 // CommandBufferProxy implementation:
63 virtual int GetRouteID() const OVERRIDE; 63 virtual int GetRouteID() const OVERRIDE;
64 virtual bool Echo(const base::Closure& callback) OVERRIDE; 64 virtual bool Echo(const base::Closure& callback) OVERRIDE;
65 virtual bool SetSurfaceVisible(bool visible) OVERRIDE; 65 virtual bool SetSurfaceVisible(bool visible) OVERRIDE;
66 virtual bool DiscardBackbuffer() OVERRIDE; 66 virtual bool DiscardBackbuffer() OVERRIDE;
67 virtual bool EnsureBackbuffer() OVERRIDE; 67 virtual bool EnsureBackbuffer() OVERRIDE;
68 virtual uint32 InsertSyncPoint() OVERRIDE;
69 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE;
68 virtual void SetMemoryAllocationChangedCallback( 70 virtual void SetMemoryAllocationChangedCallback(
69 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& 71 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>&
70 callback) OVERRIDE; 72 callback) OVERRIDE;
71 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, 73 virtual bool SetParent(CommandBufferProxy* parent_command_buffer,
72 uint32 parent_texture_id) OVERRIDE; 74 uint32 parent_texture_id) OVERRIDE;
73 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; 75 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE;
74 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE; 76 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE;
75 virtual void SetOnConsoleMessageCallback( 77 virtual void SetOnConsoleMessageCallback(
76 const GpuConsoleMessageCallback& callback) OVERRIDE; 78 const GpuConsoleMessageCallback& callback) OVERRIDE;
77 79
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 memory_allocation_changed_callback_; 154 memory_allocation_changed_callback_;
153 155
154 GpuConsoleMessageCallback console_message_callback_; 156 GpuConsoleMessageCallback console_message_callback_;
155 157
156 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 158 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
157 }; 159 };
158 160
159 #endif // ENABLE_GPU 161 #endif // ENABLE_GPU
160 162
161 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 163 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698