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

Unified Diff: cc/test/test_gles2_interface.cc

Issue 2161323002: cc: Make LayerTreeHostImpl unittests use a delegating output surface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: display-lthi-tests: . Created 4 years, 5 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/test_gles2_interface.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_gles2_interface.cc
diff --git a/cc/test/test_gles2_interface.cc b/cc/test/test_gles2_interface.cc
index c137c39450620ba78e768c48a6eb2ca2bef995d7..a8b27c2d0e41aec7826826bb6032ba9599ba1ee5 100644
--- a/cc/test/test_gles2_interface.cc
+++ b/cc/test/test_gles2_interface.cc
@@ -10,12 +10,8 @@
namespace cc {
-TestGLES2Interface::TestGLES2Interface(TestWebGraphicsContext3D* test_context)
- : test_context_(test_context) {
- DCHECK(test_context_);
-}
-
-TestGLES2Interface::~TestGLES2Interface() {}
+TestGLES2Interface::TestGLES2Interface() = default;
+TestGLES2Interface::~TestGLES2Interface() = default;
void TestGLES2Interface::GenTextures(GLsizei n, GLuint* textures) {
for (GLsizei i = 0; i < n; ++i) {
@@ -400,4 +396,10 @@ GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() {
return GL_NO_ERROR;
}
+void TestGLES2Interface::set_test_context(TestWebGraphicsContext3D* context) {
+ DCHECK(!test_context_);
+ test_context_ = context;
+ InitializeTestContext(test_context_);
+}
+
} // namespace cc
« no previous file with comments | « cc/test/test_gles2_interface.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698