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

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

Issue 1275543005: Move some work from backend onClear to base class clear (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Pass references and rebase Created 5 years, 4 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 const void* srcData) override; 125 const void* srcData) override;
126 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; 126 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override;
127 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; 127 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override;
128 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override; 128 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override;
129 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 129 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
130 GrWrapOwnership) override; 130 GrWrapOwnership) override;
131 bool createStencilAttachmentForRenderTarget(GrRenderTarget* rt, int width, i nt height) override; 131 bool createStencilAttachmentForRenderTarget(GrRenderTarget* rt, int width, i nt height) override;
132 bool attachStencilAttachmentToRenderTarget(GrStencilAttachment* sb, 132 bool attachStencilAttachmentToRenderTarget(GrStencilAttachment* sb,
133 GrRenderTarget* rt) override; 133 GrRenderTarget* rt) override;
134 134
135 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, 135 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override;
136 bool canIgnoreRect) override;
137 136
138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override; 137 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override;
139 138
140 bool onReadPixels(GrSurface*, 139 bool onReadPixels(GrSurface*,
141 int left, int top, 140 int left, int top,
142 int width, int height, 141 int width, int height,
143 GrPixelConfig, 142 GrPixelConfig,
144 void* buffer, 143 void* buffer,
145 size_t rowBytes) override; 144 size_t rowBytes) override;
146 145
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 495
497 // we record what stencil format worked last time to hopefully exit early 496 // we record what stencil format worked last time to hopefully exit early
498 // from our loop that tries stencil formats and calls check fb status. 497 // from our loop that tries stencil formats and calls check fb status.
499 int fLastSuccessfulStencilFmtIdx; 498 int fLastSuccessfulStencilFmtIdx;
500 499
501 typedef GrGpu INHERITED; 500 typedef GrGpu INHERITED;
502 friend class GrGLPathRendering; // For accessing setTextureUnit. 501 friend class GrGLPathRendering; // For accessing setTextureUnit.
503 }; 502 };
504 503
505 #endif 504 #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