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

Side by Side Diff: src/gpu/gl/GrGpuGL.h

Issue 17027003: Add flag bits for partial GrContext reset (Closed)
Patch Set: Fixes (prev checkin was reverted due to assertions) Created 7 years, 5 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 | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 9
10 #ifndef GrGpuGL_DEFINED 10 #ifndef GrGpuGL_DEFINED
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const SkIRect& srcRect, 95 const SkIRect& srcRect,
96 const SkIPoint& dstPoint) SK_OVERRIDE; 96 const SkIPoint& dstPoint) SK_OVERRIDE;
97 97
98 virtual bool onCanCopySurface(GrSurface* dst, 98 virtual bool onCanCopySurface(GrSurface* dst,
99 GrSurface* src, 99 GrSurface* src,
100 const SkIRect& srcRect, 100 const SkIRect& srcRect,
101 const SkIPoint& dstPoint) SK_OVERRIDE; 101 const SkIPoint& dstPoint) SK_OVERRIDE;
102 102
103 private: 103 private:
104 // GrGpu overrides 104 // GrGpu overrides
105 virtual void onResetContext() SK_OVERRIDE; 105 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE;
106 106
107 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, 107 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc,
108 const void* srcData, 108 const void* srcData,
109 size_t rowBytes) SK_OVERRIDE; 109 size_t rowBytes) SK_OVERRIDE;
110 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size, 110 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size,
111 bool dynamic) SK_OVERRIDE; 111 bool dynamic) SK_OVERRIDE;
112 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size, 112 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size,
113 bool dynamic) SK_OVERRIDE; 113 bool dynamic) SK_OVERRIDE;
114 virtual GrPath* onCreatePath(const SkPath&) SK_OVERRIDE; 114 virtual GrPath* onCreatePath(const SkPath&) SK_OVERRIDE;
115 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE; 115 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE;
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 ///@} 433 ///@}
434 434
435 // we record what stencil format worked last time to hopefully exit early 435 // we record what stencil format worked last time to hopefully exit early
436 // from our loop that tries stencil formats and calls check fb status. 436 // from our loop that tries stencil formats and calls check fb status.
437 int fLastSuccessfulStencilFmtIdx; 437 int fLastSuccessfulStencilFmtIdx;
438 438
439 typedef GrGpu INHERITED; 439 typedef GrGpu INHERITED;
440 }; 440 };
441 441
442 #endif 442 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698