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

Unified Diff: cc/test/test_context_provider.h

Issue 2208693003: Revert of cc: Make LayerTreeTests use a DelegatingRenderer and Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « cc/test/layer_tree_test.cc ('k') | cc/test/test_context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_context_provider.h
diff --git a/cc/test/test_context_provider.h b/cc/test/test_context_provider.h
index d7c5627f4781e5f13a47704a8c73cb90f37517a6..97c7abcd3b5bae42affb7ad1b768e9e2723f58fb 100644
--- a/cc/test/test_context_provider.h
+++ b/cc/test/test_context_provider.h
@@ -36,9 +36,6 @@
static scoped_refptr<TestContextProvider> Create(
std::unique_ptr<TestWebGraphicsContext3D> context);
static scoped_refptr<TestContextProvider> Create(
- std::unique_ptr<TestWebGraphicsContext3D> context,
- std::unique_ptr<TestContextSupport> support);
- static scoped_refptr<TestContextProvider> Create(
std::unique_ptr<TestGLES2Interface> gl);
bool BindToCurrentThread() override;
@@ -60,11 +57,10 @@
// InitializeOnCurrentThread on the context returned from this method.
TestWebGraphicsContext3D* UnboundTestContext3d();
- TestContextSupport* support() { return support_.get(); }
+ TestContextSupport* support() { return &support_; }
protected:
explicit TestContextProvider(
- std::unique_ptr<TestContextSupport> support,
std::unique_ptr<TestGLES2Interface> gl,
std::unique_ptr<TestWebGraphicsContext3D> context);
~TestContextProvider() override;
@@ -72,10 +68,11 @@
private:
void OnLostContext();
- std::unique_ptr<TestContextSupport> support_;
+ TestContextSupport support_;
+
std::unique_ptr<TestWebGraphicsContext3D> context3d_;
std::unique_ptr<TestGLES2Interface> context_gl_;
- bool bound_ = false;
+ bool bound_;
base::ThreadChecker main_thread_checker_;
base::ThreadChecker context_thread_checker_;
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/test/test_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698