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

Unified Diff: ui/gl/test/gl_image_test_template.h

Issue 1920163005: Split //ui/gl into //ui/gl + //ui/gi/init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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 | « ui/gl/init/gl_init_export.h ('k') | ui/ozone/demo/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/test/gl_image_test_template.h
diff --git a/ui/gl/test/gl_image_test_template.h b/ui/gl/test/gl_image_test_template.h
index 4459200bf20109f51f2c3e4ee47717f26ed93350..543df8d735a7ceeed1f29b43616ca2818c8b3c86 100644
--- a/ui/gl/test/gl_image_test_template.h
+++ b/ui/gl/test/gl_image_test_template.h
@@ -24,6 +24,7 @@
#include "ui/gl/gl_image.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_surface.h"
+#include "ui/gl/init/gl_factory.h"
#include "ui/gl/test/gl_image_test_support.h"
#include "ui/gl/test/gl_test_helper.h"
@@ -125,9 +126,9 @@ class GLImageTest : public testing::Test {
// Overridden from testing::Test:
void SetUp() override {
GLImageTestSupport::InitializeGL();
- surface_ = gfx::GLSurface::CreateOffscreenGLSurface(gfx::Size());
- context_ = gfx::GLContext::CreateGLContext(nullptr, surface_.get(),
- gfx::PreferIntegratedGpu);
+ surface_ = gl::init::CreateOffscreenGLSurface(gfx::Size());
+ context_ = gl::init::CreateGLContext(nullptr, surface_.get(),
+ gfx::PreferIntegratedGpu);
context_->MakeCurrent(surface_.get());
}
void TearDown() override {
« no previous file with comments | « ui/gl/init/gl_init_export.h ('k') | ui/ozone/demo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698