| OLD | NEW |
| 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 PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 5 #ifndef PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
| 6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 virtual ~PpapiCommandBufferProxy(); | 29 virtual ~PpapiCommandBufferProxy(); |
| 30 | 30 |
| 31 void ReportChannelError(); | 31 void ReportChannelError(); |
| 32 | 32 |
| 33 // CommandBufferProxy implementation: | 33 // CommandBufferProxy implementation: |
| 34 virtual int GetRouteID() const OVERRIDE; | 34 virtual int GetRouteID() const OVERRIDE; |
| 35 virtual bool Echo(const base::Closure& callback) OVERRIDE; | 35 virtual bool Echo(const base::Closure& callback) OVERRIDE; |
| 36 virtual bool SetSurfaceVisible(bool visible) OVERRIDE; | 36 virtual bool SetSurfaceVisible(bool visible) OVERRIDE; |
| 37 virtual bool DiscardBackbuffer() OVERRIDE; | 37 virtual bool DiscardBackbuffer() OVERRIDE; |
| 38 virtual bool EnsureBackbuffer() OVERRIDE; | 38 virtual bool EnsureBackbuffer() OVERRIDE; |
| 39 virtual uint32 InsertSyncPoint() OVERRIDE; |
| 40 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE; |
| 39 virtual void SetMemoryAllocationChangedCallback( | 41 virtual void SetMemoryAllocationChangedCallback( |
| 40 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& | 42 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& |
| 41 callback) OVERRIDE; | 43 callback) OVERRIDE; |
| 42 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, | 44 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, |
| 43 uint32 parent_texture_id) OVERRIDE; | 45 uint32 parent_texture_id) OVERRIDE; |
| 44 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; | 46 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; |
| 45 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE; | 47 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE; |
| 46 virtual void SetOnConsoleMessageCallback( | 48 virtual void SetOnConsoleMessageCallback( |
| 47 const GpuConsoleMessageCallback& callback) OVERRIDE; | 49 const GpuConsoleMessageCallback& callback) OVERRIDE; |
| 48 | 50 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 78 | 80 |
| 79 base::Closure channel_error_callback_; | 81 base::Closure channel_error_callback_; |
| 80 | 82 |
| 81 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); | 83 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace proxy | 86 } // namespace proxy |
| 85 } // namespace ppapi | 87 } // namespace ppapi |
| 86 | 88 |
| 87 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 89 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
| OLD | NEW |