summaryrefslogtreecommitdiffstats
path: root/cc/test/test_context_provider.h
diff options
context:
space:
mode:
authorhendrikw <hendrikw@chromium.org>2014-12-10 13:12:26 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-10 21:12:44 +0000
commita5726698eac2e4d6d54fc35a557c26c4abe9bb31 (patch)
treece56d31166e202dd3adf7f201183f797575fb588 /cc/test/test_context_provider.h
parentf3f301b2fffc0968242a2a14c582861a2cb2f80e (diff)
downloadchromium_src-a5726698eac2e4d6d54fc35a557c26c4abe9bb31.zip
chromium_src-a5726698eac2e4d6d54fc35a557c26c4abe9bb31.tar.gz
chromium_src-a5726698eac2e4d6d54fc35a557c26c4abe9bb31.tar.bz2
cc: Return null interface context for TestContextProvider
Unit tests that use TestContextProvider and gpu_rasterization_forced require a GrContext to create the SkSurface. We now return a GrContext created using GrGLCreateNullInterface. BUG=332502 Review URL: https://codereview.chromium.org/768113009 Cr-Commit-Position: refs/heads/master@{#307760}
Diffstat (limited to 'cc/test/test_context_provider.h')
-rw-r--r--cc/test/test_context_provider.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/test/test_context_provider.h b/cc/test/test_context_provider.h
index 66ae998..3be8b43 100644
--- a/cc/test/test_context_provider.h
+++ b/cc/test/test_context_provider.h
@@ -13,6 +13,7 @@
#include "cc/output/context_provider.h"
#include "cc/test/test_context_support.h"
#include "gpu/command_buffer/client/gles2_interface_stub.h"
+#include "skia/ext/refptr.h"
namespace cc {
class TestWebGraphicsContext3D;
@@ -75,6 +76,7 @@ class TestContextProvider : public ContextProvider {
LostContextCallback lost_context_callback_;
MemoryPolicyChangedCallback memory_policy_changed_callback_;
+ skia::RefPtr<class GrContext> gr_context_;
base::WeakPtrFactory<TestContextProvider> weak_ptr_factory_;