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

Side by Side Diff: gpu/command_buffer/client/context_support.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: forreal 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_CLIENT_CONTEXT_SUPPORT_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "ui/gfx/geometry/rect.h" 9 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/overlay_transform.h" 10 #include "ui/gfx/overlay_transform.h"
(...skipping 22 matching lines...) Expand all
33 // This method is not stateful and needs to be re-scheduled every frame. 33 // This method is not stateful and needs to be re-scheduled every frame.
34 virtual void ScheduleOverlayPlane(int plane_z_order, 34 virtual void ScheduleOverlayPlane(int plane_z_order,
35 gfx::OverlayTransform plane_transform, 35 gfx::OverlayTransform plane_transform,
36 unsigned overlay_texture_id, 36 unsigned overlay_texture_id,
37 const gfx::Rect& display_bounds, 37 const gfx::Rect& display_bounds,
38 const gfx::RectF& uv_rect) = 0; 38 const gfx::RectF& uv_rect) = 0;
39 39
40 virtual uint32 InsertFutureSyncPointCHROMIUM() = 0; 40 virtual uint32 InsertFutureSyncPointCHROMIUM() = 0;
41 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0; 41 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0;
42 42
43 virtual bool IsContextLost() = 0;
44
43 protected: 45 protected:
44 ContextSupport() {} 46 ContextSupport() {}
45 virtual ~ContextSupport() {} 47 virtual ~ContextSupport() {}
46 }; 48 };
47 49
48 } 50 }
49 51
50 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 52 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698