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

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

Issue 53823003: Add can-ignore-rect hint to clear call (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: cleaned up Created 7 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 | Annotate | Revision Log
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual GrPath* onCreatePath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE; 128 virtual GrPath* onCreatePath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE;
129 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE; 129 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE;
130 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&) SK_OVERRIDE; 130 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&) SK_OVERRIDE;
131 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, 131 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt,
132 int width, 132 int width,
133 int height) SK_OVERRIDE; 133 int height) SK_OVERRIDE;
134 virtual bool attachStencilBufferToRenderTarget( 134 virtual bool attachStencilBufferToRenderTarget(
135 GrStencilBuffer* sb, 135 GrStencilBuffer* sb,
136 GrRenderTarget* rt) SK_OVERRIDE; 136 GrRenderTarget* rt) SK_OVERRIDE;
137 137
138 virtual void onClear(const SkIRect* rect, GrColor color) SK_OVERRIDE; 138 virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect) SK_OVERRIDE;
139 139
140 virtual void onForceRenderTargetFlush() SK_OVERRIDE; 140 virtual void onForceRenderTargetFlush() SK_OVERRIDE;
141 141
142 virtual bool onReadPixels(GrRenderTarget* target, 142 virtual bool onReadPixels(GrRenderTarget* target,
143 int left, int top, 143 int left, int top,
144 int width, int height, 144 int width, int height,
145 GrPixelConfig, 145 GrPixelConfig,
146 void* buffer, 146 void* buffer,
147 size_t rowBytes) SK_OVERRIDE; 147 size_t rowBytes) SK_OVERRIDE;
148 148
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 ///@} 450 ///@}
451 451
452 // we record what stencil format worked last time to hopefully exit early 452 // we record what stencil format worked last time to hopefully exit early
453 // from our loop that tries stencil formats and calls check fb status. 453 // from our loop that tries stencil formats and calls check fb status.
454 int fLastSuccessfulStencilFmtIdx; 454 int fLastSuccessfulStencilFmtIdx;
455 455
456 typedef GrGpu INHERITED; 456 typedef GrGpu INHERITED;
457 }; 457 };
458 458
459 #endif 459 #endif
OLDNEW
« src/gpu/GrDrawTarget.h ('K') | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698