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

Unified Diff: cc/test/test_gles2_interface.h

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_delegating_output_surface.cc ('k') | cc/test/test_gles2_interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_gles2_interface.h
diff --git a/cc/test/test_gles2_interface.h b/cc/test/test_gles2_interface.h
index a02bb1934d37349715263c6d8f2cef654fd68002..e432bc1faccf8ba6d801aeb0397825fc8c2d4396 100644
--- a/cc/test/test_gles2_interface.h
+++ b/cc/test/test_gles2_interface.h
@@ -12,7 +12,7 @@ class TestWebGraphicsContext3D;
class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
public:
- explicit TestGLES2Interface(TestWebGraphicsContext3D* test_context);
+ TestGLES2Interface();
~TestGLES2Interface() override;
void GenTextures(GLsizei n, GLuint* textures) override;
@@ -162,8 +162,13 @@ class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
void LoseContextCHROMIUM(GLenum current, GLenum other) override;
GLenum GetGraphicsResetStatusKHR() override;
- private:
- TestWebGraphicsContext3D* test_context_;
+ void set_test_context(TestWebGraphicsContext3D* context);
+
+ protected:
+ virtual void InitializeTestContext(TestWebGraphicsContext3D* context) {}
+
+ protected:
+ TestWebGraphicsContext3D* test_context_ = nullptr;
};
} // namespace cc
« no previous file with comments | « cc/test/test_delegating_output_surface.cc ('k') | cc/test/test_gles2_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698