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

Side by Side Diff: cc/test/test_in_process_context_provider.cc

Issue 2122573003: media: replace LUMINANCE_F16 by RG_88 for 9/10-bit h264 videos Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to ToT Created 4 years, 2 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 | « cc/test/test_in_process_context_provider.h ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/test/test_in_process_context_provider.h" 5 #include "cc/test/test_in_process_context_provider.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 base::Lock* TestInProcessContextProvider::GetLock() { 104 base::Lock* TestInProcessContextProvider::GetLock() {
105 return &context_lock_; 105 return &context_lock_;
106 } 106 }
107 107
108 gpu::Capabilities TestInProcessContextProvider::ContextCapabilities() { 108 gpu::Capabilities TestInProcessContextProvider::ContextCapabilities() {
109 gpu::Capabilities capabilities; 109 gpu::Capabilities capabilities;
110 capabilities.texture_rectangle = true; 110 capabilities.texture_rectangle = true;
111 capabilities.sync_query = true; 111 capabilities.sync_query = true;
112 capabilities.disable_one_component_textures =
113 capabilities_disable_one_component_textures_;
114 capabilities.texture_half_float_linear =
115 capabilities_texture_half_float_linear_;
112 switch (PlatformColor::Format()) { 116 switch (PlatformColor::Format()) {
113 case PlatformColor::SOURCE_FORMAT_RGBA8: 117 case PlatformColor::SOURCE_FORMAT_RGBA8:
114 capabilities.texture_format_bgra8888 = false; 118 capabilities.texture_format_bgra8888 = false;
115 break; 119 break;
116 case PlatformColor::SOURCE_FORMAT_BGRA8: 120 case PlatformColor::SOURCE_FORMAT_BGRA8:
117 capabilities.texture_format_bgra8888 = true; 121 capabilities.texture_format_bgra8888 = true;
118 break; 122 break;
119 } 123 }
120 return capabilities; 124 return capabilities;
121 } 125 }
122 126
123 void TestInProcessContextProvider::SetLostContextCallback( 127 void TestInProcessContextProvider::SetLostContextCallback(
124 const LostContextCallback& lost_context_callback) {} 128 const LostContextCallback& lost_context_callback) {}
125 129
126 } // namespace cc 130 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_in_process_context_provider.h ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698