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

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

Issue 701573002: Workaround for PowerVR clear issue. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_null
Patch Set: Add missing spaces Created 6 years, 1 month 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 /* 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 #ifndef GrGpuGL_DEFINED 8 #ifndef GrGpuGL_DEFINED
9 #define GrGpuGL_DEFINED 9 #define GrGpuGL_DEFINED
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVE RRIDE; 127 virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVE RRIDE;
128 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE; 128 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE;
129 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&) SK_OVERRIDE; 129 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&) SK_OVERRIDE;
130 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, 130 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt,
131 int width, 131 int width,
132 int height) SK_OVERRIDE; 132 int height) SK_OVERRIDE;
133 virtual bool attachStencilBufferToRenderTarget( 133 virtual bool attachStencilBufferToRenderTarget(
134 GrStencilBuffer* sb, 134 GrStencilBuffer* sb,
135 GrRenderTarget* rt) SK_OVERRIDE; 135 GrRenderTarget* rt) SK_OVERRIDE;
136 136
137 virtual void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, 137 virtual void onGpuClear(GrRenderTarget*, const SkIRect* rect, GrColor color,
138 bool canIgnoreRect) SK_OVERRIDE; 138 bool canIgnoreRect) SK_OVERRIDE;
139 139
140 virtual void onClearStencilClip(GrRenderTarget*, 140 virtual void onClearStencilClip(GrRenderTarget*,
141 const SkIRect& rect, 141 const SkIRect& rect,
142 bool insideClip) SK_OVERRIDE; 142 bool insideClip) SK_OVERRIDE;
143 143
144 virtual bool onReadPixels(GrRenderTarget* target, 144 virtual bool onReadPixels(GrRenderTarget* target,
145 int left, int top, 145 int left, int top,
146 int width, int height, 146 int width, int height,
147 GrPixelConfig, 147 GrPixelConfig,
148 void* buffer, 148 void* buffer,
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 452
453 // we record what stencil format worked last time to hopefully exit early 453 // we record what stencil format worked last time to hopefully exit early
454 // from our loop that tries stencil formats and calls check fb status. 454 // from our loop that tries stencil formats and calls check fb status.
455 int fLastSuccessfulStencilFmtIdx; 455 int fLastSuccessfulStencilFmtIdx;
456 456
457 typedef GrGpu INHERITED; 457 typedef GrGpu INHERITED;
458 friend class GrGLPathRendering; // For accessing setTextureUnit. 458 friend class GrGLPathRendering; // For accessing setTextureUnit.
459 }; 459 };
460 460
461 #endif 461 #endif
OLDNEW
« src/gpu/gl/GrGLUtil.cpp ('K') | « src/gpu/gl/GrGLUtil.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698