OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "cc/output/output_surface.h" | 5 #include "cc/output/output_surface.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 18 matching lines...) Expand all Loading... | |
29 : software_device_(std::move(software_device)) { | 29 : software_device_(std::move(software_device)) { |
30 DCHECK(software_device_); | 30 DCHECK(software_device_); |
31 } | 31 } |
32 | 32 |
33 OutputSurface::OutputSurface( | 33 OutputSurface::OutputSurface( |
34 scoped_refptr<VulkanContextProvider> vulkan_context_provider) | 34 scoped_refptr<VulkanContextProvider> vulkan_context_provider) |
35 : vulkan_context_provider_(std::move(vulkan_context_provider)) { | 35 : vulkan_context_provider_(std::move(vulkan_context_provider)) { |
36 DCHECK(vulkan_context_provider_); | 36 DCHECK(vulkan_context_provider_); |
37 } | 37 } |
38 | 38 |
39 bool OutputSurface::IsHighBitDepth() const { | |
40 return true; | |
enne (OOO)
2017/02/01 23:55:22
I'm a little surprised you return true by default
ccameron
2017/02/02 21:08:41
I'm not 100% sure this is the right interface, so
| |
41 } | |
42 | |
39 OutputSurface::~OutputSurface() = default; | 43 OutputSurface::~OutputSurface() = default; |
40 | 44 |
41 } // namespace cc | 45 } // namespace cc |
OLD | NEW |