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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 unsigned usage) override; 114 unsigned usage) override;
115 uint32 InsertSyncPoint() override; 115 uint32 InsertSyncPoint() override;
116 uint32 InsertFutureSyncPoint() override; 116 uint32 InsertFutureSyncPoint() override;
117 void RetireSyncPoint(uint32 sync_point) override; 117 void RetireSyncPoint(uint32 sync_point) override;
118 void SignalSyncPoint(uint32 sync_point, 118 void SignalSyncPoint(uint32 sync_point,
119 const base::Closure& callback) override; 119 const base::Closure& callback) override;
120 void SignalQuery(uint32 query_id, const base::Closure& callback) override; 120 void SignalQuery(uint32 query_id, const base::Closure& callback) override;
121 void SetSurfaceVisible(bool visible) override; 121 void SetSurfaceVisible(bool visible) override;
122 uint32 CreateStreamTexture(uint32 texture_id) override; 122 uint32 CreateStreamTexture(uint32 texture_id) override;
123 void SetLock(base::Lock*) override; 123 void SetLock(base::Lock*) override;
124 bool IsGpuChannelLost() override;
124 125
125 // The serializer interface to the GPU service (i.e. thread). 126 // The serializer interface to the GPU service (i.e. thread).
126 class Service { 127 class Service {
127 public: 128 public:
128 Service(); 129 Service();
129 virtual ~Service(); 130 virtual ~Service();
130 131
131 virtual void AddRef() const = 0; 132 virtual void AddRef() const = 0;
132 virtual void Release() const = 0; 133 virtual void Release() const = 0;
133 134
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 256
256 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 257 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
257 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 258 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
258 259
259 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 260 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
260 }; 261 };
261 262
262 } // namespace gpu 263 } // namespace gpu
263 264
264 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 265 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698