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

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

Issue 1376293003: Fix for 2056 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | src/gpu/gl/GrGLCaps.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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef GrGLCaps_DEFINED 9 #ifndef GrGLCaps_DEFINED
10 #define GrGLCaps_DEFINED 10 #define GrGLCaps_DEFINED
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 enum LATCAlias { 256 enum LATCAlias {
257 kLATC_LATCAlias, 257 kLATC_LATCAlias,
258 kRGTC_LATCAlias, 258 kRGTC_LATCAlias,
259 k3DC_LATCAlias 259 k3DC_LATCAlias
260 }; 260 };
261 261
262 LATCAlias latcAlias() const { return fLATCAlias; } 262 LATCAlias latcAlias() const { return fLATCAlias; }
263 263
264 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } 264 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; }
265 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } 265 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; }
266 bool bindUniformLocation() const { return fBindUniformLocation; }
bsalomon 2015/09/30 20:22:23 I think this should be grouped with all the *Suppo
266 267
267 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC aps.get()); } 268 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC aps.get()); }
268 269
269 private: 270 private:
270 void init(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterfa ce*); 271 void init(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterfa ce*);
271 bool hasPathRenderingSupport(const GrGLContextInfo&, const GrGLInterface*); 272 bool hasPathRenderingSupport(const GrGLContextInfo&, const GrGLInterface*);
272 273
273 /** 274 /**
274 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly 275 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly
275 * performing glCheckFrameBufferStatus for the same config. 276 * performing glCheckFrameBufferStatus for the same config.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 bool fDirectStateAccessSupport : 1; 354 bool fDirectStateAccessSupport : 1;
354 bool fDebugSupport : 1; 355 bool fDebugSupport : 1;
355 bool fES2CompatibilitySupport : 1; 356 bool fES2CompatibilitySupport : 1;
356 bool fMultisampleDisableSupport : 1; 357 bool fMultisampleDisableSupport : 1;
357 bool fUseNonVBOVertexAndIndexDynamicData : 1; 358 bool fUseNonVBOVertexAndIndexDynamicData : 1;
358 bool fIsCoreProfile : 1; 359 bool fIsCoreProfile : 1;
359 bool fBindFragDataLocationSupport : 1; 360 bool fBindFragDataLocationSupport : 1;
360 bool fSRGBWriteControl : 1; 361 bool fSRGBWriteControl : 1;
361 bool fRGBA8888PixelsOpsAreSlow : 1; 362 bool fRGBA8888PixelsOpsAreSlow : 1;
362 bool fPartialFBOReadIsSlow : 1; 363 bool fPartialFBOReadIsSlow : 1;
364 bool fBindUniformLocation : 1;
363 365
364 struct ReadPixelsSupportedFormat { 366 struct ReadPixelsSupportedFormat {
365 GrGLenum fFormat; 367 GrGLenum fFormat;
366 GrGLenum fType; 368 GrGLenum fType;
367 GrGLenum fFboFormat; 369 GrGLenum fFboFormat;
368 370
369 bool operator==(const ReadPixelsSupportedFormat& rhs) const { 371 bool operator==(const ReadPixelsSupportedFormat& rhs) const {
370 return fFormat == rhs.fFormat 372 return fFormat == rhs.fFormat
371 && fType == rhs.fType 373 && fType == rhs.fType
372 && fFboFormat == rhs.fFboFormat; 374 && fFboFormat == rhs.fFboFormat;
373 } 375 }
374 }; 376 };
375 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e; 377 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e;
376 378
377 typedef GrCaps INHERITED; 379 typedef GrCaps INHERITED;
378 }; 380 };
379 381
380 #endif 382 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698