Commit b054ab43 authored by Scott Graham's avatar Scott Graham Committed by Commit Bot

fuchsia: Stub some unneeded gfx methods

Fuchsia is initially trying to get a headless build up and
running so gpu methods are unnecessary.

Bug: 743296
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I5acc71a1be7b2058538a9e0d8d2bef4ba3ca4a52
Reviewed-on: https://chromium-review.googlesource.com/596506Reviewed-by: default avatarJohn Bauman <jbauman@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491532}
parent 8c1ed31a
...@@ -18,4 +18,8 @@ CollectInfoResult CollectDriverInfoGL(GPUInfo* gpu_info) { ...@@ -18,4 +18,8 @@ CollectInfoResult CollectDriverInfoGL(GPUInfo* gpu_info) {
return kCollectInfoNonFatalFailure; return kCollectInfoNonFatalFailure;
} }
CollectInfoResult CollectContextGraphicsInfo(GPUInfo* gpu_info) {
return CollectBasicGraphicsInfo(gpu_info);
}
} // namespace gpu } // namespace gpu
...@@ -126,6 +126,9 @@ target(link_target_type, "ipc_service_sources") { ...@@ -126,6 +126,9 @@ target(link_target_type, "ipc_service_sources") {
if (use_ozone) { if (use_ozone) {
deps += [ "//ui/ozone" ] deps += [ "//ui/ozone" ]
} }
if (is_fuchsia) {
sources += [ "image_transport_surface_fuchsia.cc" ]
}
} }
source_set("test_support") { source_set("test_support") {
......
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpu/ipc/service/image_transport_surface.h"
#include "base/logging.h"
#include "ui/gl/gl_surface_stub.h"
namespace gpu {
// static
scoped_refptr<gl::GLSurface> ImageTransportSurface::CreateNativeSurface(
base::WeakPtr<ImageTransportSurfaceDelegate> delegate,
SurfaceHandle surface_handle,
gl::GLSurfaceFormat format) {
DCHECK(gl::GetGLImplementation() == gl::kGLImplementationMockGL ||
gl::GetGLImplementation() == gl::kGLImplementationStubGL);
return new gl::GLSurfaceStub;
}
} // namespace gpu
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment