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

Unified Diff: src/gpu/gl/SkGLContextHelper.cpp

Issue 474623002: Add new API to allow layer hoisting/atlasing across picture piles Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more cleanup Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGpuGL.cpp ('k') | tools/bench_pictures_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/SkGLContextHelper.cpp
diff --git a/src/gpu/gl/SkGLContextHelper.cpp b/src/gpu/gl/SkGLContextHelper.cpp
index 411e1de01e947bbc667402cfacd51d694ac843ce..22e5fd9367d91289b2b9a2c119c02be182b96492 100644
--- a/src/gpu/gl/SkGLContextHelper.cpp
+++ b/src/gpu/gl/SkGLContextHelper.cpp
@@ -27,6 +27,8 @@ SkGLContextHelper::~SkGLContextHelper() {
SkSafeUnref(fGL);
}
+extern int gBindFrameBufferCount;
+
bool SkGLContextHelper::init(GrGLStandard forcedGpuAPI, int width,
int height) {
if (fGL) {
@@ -55,6 +57,7 @@ bool SkGLContextHelper::init(GrGLStandard forcedGpuAPI, int width,
} while (GR_GL_NO_ERROR != error);
SK_GL(*this, GenFramebuffers(1, &fFBO));
+ gBindFrameBufferCount++;
SK_GL(*this, BindFramebuffer(GR_GL_FRAMEBUFFER, fFBO));
SK_GL(*this, GenRenderbuffers(1, &fColorBufferID));
SK_GL(*this, BindRenderbuffer(GR_GL_RENDERBUFFER, fColorBufferID));
« no previous file with comments | « src/gpu/gl/GrGpuGL.cpp ('k') | tools/bench_pictures_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698