| 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 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 unsigned internalformat, | 58 unsigned internalformat, |
| 59 unsigned usage) override; | 59 unsigned usage) override; |
| 60 uint32 InsertSyncPoint() override; | 60 uint32 InsertSyncPoint() override; |
| 61 uint32 InsertFutureSyncPoint() override; | 61 uint32 InsertFutureSyncPoint() override; |
| 62 void RetireSyncPoint(uint32 sync_point) override; | 62 void RetireSyncPoint(uint32 sync_point) override; |
| 63 void SignalSyncPoint(uint32 sync_point, | 63 void SignalSyncPoint(uint32 sync_point, |
| 64 const base::Closure& callback) override; | 64 const base::Closure& callback) override; |
| 65 void SignalQuery(uint32 query, const base::Closure& callback) override; | 65 void SignalQuery(uint32 query, const base::Closure& callback) override; |
| 66 void SetSurfaceVisible(bool visible) override; | 66 void SetSurfaceVisible(bool visible) override; |
| 67 uint32 CreateStreamTexture(uint32 texture_id) override; | 67 uint32 CreateStreamTexture(uint32 texture_id) override; |
| 68 uint32 CreateStreamTextureImage(int32 image_id) override; |
| 68 void SetLock(base::Lock*) override; | 69 void SetLock(base::Lock*) override; |
| 69 bool IsGpuChannelLost() override; | 70 bool IsGpuChannelLost() override; |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 bool Send(IPC::Message* msg); | 73 bool Send(IPC::Message* msg); |
| 73 void UpdateState(const gpu::CommandBuffer::State& state, bool success); | 74 void UpdateState(const gpu::CommandBuffer::State& state, bool success); |
| 74 | 75 |
| 75 // Try to read an updated copy of the state from shared memory. | 76 // Try to read an updated copy of the state from shared memory. |
| 76 void TryUpdateState(); | 77 void TryUpdateState(); |
| 77 | 78 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 91 | 92 |
| 92 InstanceData::FlushInfo *flush_info_; | 93 InstanceData::FlushInfo *flush_info_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); | 95 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace proxy | 98 } // namespace proxy |
| 98 } // namespace ppapi | 99 } // namespace ppapi |
| 99 | 100 |
| 100 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 101 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
| OLD | NEW |