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

Side by Side Diff: ppapi/proxy/flash_resource.cc

Issue 12079111: Allow separately blacklisting Stage3D baseline mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/c/private/ppb_flash.h ('k') | ppapi/proxy/ppapi_messages.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ppapi/proxy/flash_resource.h" 5 #include "ppapi/proxy/flash_resource.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/containers/mru_cache.h" 9 #include "base/containers/mru_cache.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 PP_FlashSetting setting) { 144 PP_FlashSetting setting) {
145 switch (setting) { 145 switch (setting) {
146 case PP_FLASHSETTING_3DENABLED: 146 case PP_FLASHSETTING_3DENABLED:
147 return PP_MakeBool(PP_FromBool( 147 return PP_MakeBool(PP_FromBool(
148 plugin_dispatcher_->preferences().is_3d_supported)); 148 plugin_dispatcher_->preferences().is_3d_supported));
149 case PP_FLASHSETTING_INCOGNITO: 149 case PP_FLASHSETTING_INCOGNITO:
150 return PP_MakeBool(PP_FromBool(plugin_dispatcher_->incognito())); 150 return PP_MakeBool(PP_FromBool(plugin_dispatcher_->incognito()));
151 case PP_FLASHSETTING_STAGE3DENABLED: 151 case PP_FLASHSETTING_STAGE3DENABLED:
152 return PP_MakeBool(PP_FromBool( 152 return PP_MakeBool(PP_FromBool(
153 plugin_dispatcher_->preferences().is_stage3d_supported)); 153 plugin_dispatcher_->preferences().is_stage3d_supported));
154 case PP_FLASHSETTING_STAGE3DBASELINEENABLED:
155 return PP_MakeBool(PP_FromBool(
156 plugin_dispatcher_->preferences().is_stage3d_baseline_supported));
154 case PP_FLASHSETTING_LANGUAGE: 157 case PP_FLASHSETTING_LANGUAGE:
155 return StringVar::StringToPPVar( 158 return StringVar::StringToPPVar(
156 PluginGlobals::Get()->GetUILanguage()); 159 PluginGlobals::Get()->GetUILanguage());
157 case PP_FLASHSETTING_NUMCORES: 160 case PP_FLASHSETTING_NUMCORES:
158 return PP_MakeInt32( 161 return PP_MakeInt32(
159 plugin_dispatcher_->preferences().number_of_cpu_cores); 162 plugin_dispatcher_->preferences().number_of_cpu_cores);
160 case PP_FLASHSETTING_LSORESTRICTIONS: { 163 case PP_FLASHSETTING_LSORESTRICTIONS: {
161 int32_t restrictions; 164 int32_t restrictions;
162 int32_t result = 165 int32_t result =
163 SyncCall<PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply>(BROWSER, 166 SyncCall<PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply>(BROWSER,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 PpapiHostMsg_Flash_IsRectTopmost(*rect)); 242 PpapiHostMsg_Flash_IsRectTopmost(*rect));
240 return PP_FromBool(result == PP_OK); 243 return PP_FromBool(result == PP_OK);
241 } 244 }
242 245
243 void FlashResource::InvokePrinting(PP_Instance instance) { 246 void FlashResource::InvokePrinting(PP_Instance instance) {
244 Post(RENDERER, PpapiHostMsg_Flash_InvokePrinting()); 247 Post(RENDERER, PpapiHostMsg_Flash_InvokePrinting());
245 } 248 }
246 249
247 } // namespace proxy 250 } // namespace proxy
248 } // namespace ppapi 251 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_flash.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698