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

Side by Side Diff: ui/gl/test/gl_image_test_template.h

Issue 1825283003: [Merge to 2623] Disable IOSurface clearing on OS X 10.9. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/mac/io_surface.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file defines tests that implementations of GLImage should pass in order 5 // This file defines tests that implementations of GLImage should pass in order
6 // to be conformant. 6 // to be conformant.
7 7
8 #ifndef UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ 8 #ifndef UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_
9 #define UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ 9 #define UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_
10 10
11 #include <stdint.h> 11 #include <stdint.h>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/strings/stringize_macros.h" 14 #include "base/strings/stringize_macros.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "build/build_config.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 #include "ui/gfx/buffer_format_util.h" 18 #include "ui/gfx/buffer_format_util.h"
18 #include "ui/gfx/buffer_types.h" 19 #include "ui/gfx/buffer_types.h"
19 #include "ui/gl/gl_bindings.h" 20 #include "ui/gl/gl_bindings.h"
20 #include "ui/gl/gl_context.h" 21 #include "ui/gl/gl_context.h"
21 #include "ui/gl/gl_helper.h" 22 #include "ui/gl/gl_helper.h"
22 #include "ui/gl/gl_image.h" 23 #include "ui/gl/gl_image.h"
23 #include "ui/gl/gl_implementation.h" 24 #include "ui/gl/gl_implementation.h"
24 #include "ui/gl/gl_surface.h" 25 #include "ui/gl/gl_surface.h"
25 #include "ui/gl/test/gl_image_test_support.h" 26 #include "ui/gl/test/gl_image_test_support.h"
26 #include "ui/gl/test/gl_test_helper.h" 27 #include "ui/gl/test/gl_test_helper.h"
27 28
29 #if defined(OS_MACOSX)
30 #include "base/mac/mac_util.h"
31 #endif
erikchen 2016/03/23 00:29:35 Whoops. The test wasn't a part of M49, and it look
32
28 namespace gl { 33 namespace gl {
29 34
30 template <typename GLImageTestDelegate> 35 template <typename GLImageTestDelegate>
31 class GLImageTest : public testing::Test { 36 class GLImageTest : public testing::Test {
32 protected: 37 protected:
33 // Overridden from testing::Test: 38 // Overridden from testing::Test:
34 void SetUp() override { 39 void SetUp() override {
35 GLImageTestSupport::InitializeGL(); 40 GLImageTestSupport::InitializeGL();
36 surface_ = gfx::GLSurface::CreateOffscreenGLSurface(gfx::Size()); 41 surface_ = gfx::GLSurface::CreateOffscreenGLSurface(gfx::Size());
37 context_ = gfx::GLContext::CreateGLContext(nullptr, surface_.get(), 42 context_ = gfx::GLContext::CreateGLContext(nullptr, surface_.get(),
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 image->Destroy(true); 187 image->Destroy(true);
183 } 188 }
184 189
185 // The GLImageCopyTest test case verifies that the GLImage implementation 190 // The GLImageCopyTest test case verifies that the GLImage implementation
186 // handles CopyTexImage correctly. 191 // handles CopyTexImage correctly.
187 REGISTER_TYPED_TEST_CASE_P(GLImageCopyTest, CopyTexImage); 192 REGISTER_TYPED_TEST_CASE_P(GLImageCopyTest, CopyTexImage);
188 193
189 } // namespace gl 194 } // namespace gl
190 195
191 #endif // UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ 196 #endif // UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_
OLDNEW
« no previous file with comments | « ui/gfx/mac/io_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698