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

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

Issue 1594483003: Texturing support for RECTANGLE textures. (Closed) Base URL: https://skia.googlesource.com/skia.git@rectangle
Patch Set: fix float->int warnings Created 4 years, 11 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/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.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 #ifndef GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 154 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
155 GrWrapOwnership) override; 155 GrWrapOwnership) override;
156 // Given a GrPixelConfig return the index into the stencil format array on G rGLCaps to a 156 // Given a GrPixelConfig return the index into the stencil format array on G rGLCaps to a
157 // compatible stencil format, or negative if there is no compatible stencil format. 157 // compatible stencil format, or negative if there is no compatible stencil format.
158 int getCompatibleStencilIndex(GrPixelConfig config); 158 int getCompatibleStencilIndex(GrPixelConfig config);
159 159
160 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; 160 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override;
161 161
162 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override; 162 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override;
163 163
164 bool onMakeCopyForTextureParams(GrTexture*, const GrTextureParams&,
165 GrTextureProducer::CopyParams*) const overri de;
166
164 bool onReadPixels(GrSurface*, 167 bool onReadPixels(GrSurface*,
165 int left, int top, 168 int left, int top,
166 int width, int height, 169 int width, int height,
167 GrPixelConfig, 170 GrPixelConfig,
168 void* buffer, 171 void* buffer,
169 size_t rowBytes) override; 172 size_t rowBytes) override;
170 173
171 bool onWritePixels(GrSurface*, 174 bool onWritePixels(GrSurface*,
172 int left, int top, int width, int height, 175 int left, int top, int width, int height,
173 GrPixelConfig config, const void* buffer, 176 GrPixelConfig config, const void* buffer,
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 SkFAIL("Unexpected texture target type."); 549 SkFAIL("Unexpected texture target type.");
547 return 0; 550 return 0;
548 } 551 }
549 } 552 }
550 553
551 typedef GrGpu INHERITED; 554 typedef GrGpu INHERITED;
552 friend class GrGLPathRendering; // For accessing setTextureUnit. 555 friend class GrGLPathRendering; // For accessing setTextureUnit.
553 }; 556 };
554 557
555 #endif 558 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698