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

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

Issue 1160863007: DCHECK if shader compilation fails that it's due to context loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: glhelperlost: . Created 5 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
« 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 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 unsigned usage) override; 111 unsigned usage) override;
112 uint32 InsertSyncPoint() override; 112 uint32 InsertSyncPoint() override;
113 uint32_t InsertFutureSyncPoint() override; 113 uint32_t InsertFutureSyncPoint() override;
114 void RetireSyncPoint(uint32_t sync_point) override; 114 void RetireSyncPoint(uint32_t sync_point) override;
115 void SignalSyncPoint(uint32 sync_point, 115 void SignalSyncPoint(uint32 sync_point,
116 const base::Closure& callback) override; 116 const base::Closure& callback) override;
117 void SignalQuery(uint32 query, const base::Closure& callback) override; 117 void SignalQuery(uint32 query, const base::Closure& callback) override;
118 void SetSurfaceVisible(bool visible) override; 118 void SetSurfaceVisible(bool visible) override;
119 uint32 CreateStreamTexture(uint32 texture_id) override; 119 uint32 CreateStreamTexture(uint32 texture_id) override;
120 void SetLock(base::Lock* lock) override; 120 void SetLock(base::Lock* lock) override;
121 bool IsGpuChannelLost() override;
121 122
122 int GetRouteID() const; 123 int GetRouteID() const;
123 bool ProduceFrontBuffer(const gpu::Mailbox& mailbox); 124 bool ProduceFrontBuffer(const gpu::Mailbox& mailbox);
124 void SetContextLostCallback(const base::Closure& callback); 125 void SetContextLostCallback(const base::Closure& callback);
125 126
126 typedef base::Callback<void(const gpu::MemoryAllocation&)> 127 typedef base::Callback<void(const gpu::MemoryAllocation&)>
127 MemoryAllocationChangedCallback; 128 MemoryAllocationChangedCallback;
128 void SetMemoryAllocationChangedCallback( 129 void SetMemoryAllocationChangedCallback(
129 const MemoryAllocationChangedCallback& callback); 130 const MemoryAllocationChangedCallback& callback);
130 void AddDeletionObserver(DeletionObserver* observer); 131 void AddDeletionObserver(DeletionObserver* observer);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 232
232 SwapBuffersCompletionCallback swap_buffers_completion_callback_; 233 SwapBuffersCompletionCallback swap_buffers_completion_callback_;
233 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; 234 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_;
234 235
235 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 236 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
236 }; 237 };
237 238
238 } // namespace content 239 } // namespace content
239 240
240 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 241 #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