| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include <fcntl.h> | 5 #include <fcntl.h> |
| 6 #include <libdrm/i915_drm.h> | 6 #include <libdrm/i915_drm.h> |
| 7 #include <linux/types.h> | 7 #include <linux/types.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 #include <sys/mman.h> | 10 #include <sys/mman.h> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 return image; | 122 return image; |
| 123 } | 123 } |
| 124 | 124 |
| 125 unsigned GetTextureTarget() const { return GL_TEXTURE_EXTERNAL_OES; } | 125 unsigned GetTextureTarget() const { return GL_TEXTURE_EXTERNAL_OES; } |
| 126 | 126 |
| 127 const uint8_t* GetImageColor() { return kImageColor; } | 127 const uint8_t* GetImageColor() { return kImageColor; } |
| 128 | 128 |
| 129 private: | 129 private: |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 INSTANTIATE_TYPED_TEST_CASE_P(GLImageOzoneNativePixmapDrm, | 132 |
| 133 // TODO(crbug.com/618516) - The tests in this file can only be run |
| 134 // on a real device, and not on linux desktop builds, so they are |
| 135 // disabled until they can correctly detect the environment and do |
| 136 INSTANTIATE_TYPED_TEST_CASE_P(DISABLED_GLImageOzoneNativePixmapDrm, |
| 133 GLImageTest, | 137 GLImageTest, |
| 134 GLImageOzoneNativePixmapDrmTestDelegate); | 138 GLImageOzoneNativePixmapDrmTestDelegate); |
| 135 | 139 |
| 136 INSTANTIATE_TYPED_TEST_CASE_P(GLImageOzoneNativePixmapDrm, | 140 INSTANTIATE_TYPED_TEST_CASE_P(DISABLED_GLImageOzoneNativePixmapDrm, |
| 137 GLImageBindTest, | 141 GLImageBindTest, |
| 138 GLImageOzoneNativePixmapDrmTestDelegate); | 142 GLImageOzoneNativePixmapDrmTestDelegate); |
| 139 | 143 |
| 140 } // namespace | 144 } // namespace |
| 141 } // namespace gl | 145 } // namespace gl |
| OLD | NEW |