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

Unified Diff: src/gpu/GrContext.cpp

Issue 1776693002: Add deferred texture upload API. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 8844f1ac838a887ce2a437b49e55cd7f6abc70e0..97b68d150474f5fc73d776ad15a0224c6d02be03 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -127,6 +127,13 @@ GrContext::~GrContext() {
fCaps->unref();
}
robertphillips 2016/03/08 18:43:10 Should we make threadSafeProxy thread safe itself?
bsalomon 2016/03/08 19:49:32 GrContext is not thread-safe so I don't think this
+GrContextThreadSafeProxy* GrContext::threadSafeProxy() {
+ if (!fThreadSafeProxy) {
+ fThreadSafeProxy.reset(new GrContextThreadSafeProxy(fCaps, this->uniqueID()));
+ }
+ return SkRef(fThreadSafeProxy.get());
+}
+
void GrContext::abandonContext() {
ASSERT_SINGLE_OWNER

Powered by Google App Engine
This is Rietveld 408576698