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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 2461803002: Enable creation of offscreen contexts which own their backing surface. (Closed)
Patch Set: Drop unnecessary dependent patch Created 4 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // be on a single line for extract_actions.py to find it. Please see 463 // be on a single line for extract_actions.py to find it. Please see
464 // that script for more details. Intended use is: 464 // that script for more details. Intended use is:
465 // recordAction(UserMetricsAction("MyAction")) 465 // recordAction(UserMetricsAction("MyAction"))
466 virtual void recordAction(const UserMetricsAction&) {} 466 virtual void recordAction(const UserMetricsAction&) {}
467 467
468 typedef uint64_t WebMemoryAllocatorDumpGuid; 468 typedef uint64_t WebMemoryAllocatorDumpGuid;
469 469
470 // GPU ---------------------------------------------------------------- 470 // GPU ----------------------------------------------------------------
471 // 471 //
472 struct ContextAttributes { 472 struct ContextAttributes {
473 bool alpha = true;
474 bool depth = true;
475 bool stencil = false;
476 bool antialias = true;
473 bool failIfMajorPerformanceCaveat = false; 477 bool failIfMajorPerformanceCaveat = false;
474 unsigned webGLVersion = 0; 478 unsigned webGLVersion = 0;
479 bool ownOffscreenSurface = false;
475 }; 480 };
476 struct GraphicsInfo { 481 struct GraphicsInfo {
477 unsigned vendorId = 0; 482 unsigned vendorId = 0;
478 unsigned deviceId = 0; 483 unsigned deviceId = 0;
479 unsigned processCrashCount = 0; 484 unsigned processCrashCount = 0;
480 unsigned resetNotificationStrategy = 0; 485 unsigned resetNotificationStrategy = 0;
481 bool sandboxed = false; 486 bool sandboxed = false;
482 bool amdSwitchable = false; 487 bool amdSwitchable = false;
483 bool optimus = false; 488 bool optimus = false;
484 WebString vendorInfo; 489 WebString vendorInfo;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 protected: 680 protected:
676 Platform(); 681 Platform();
677 virtual ~Platform() {} 682 virtual ~Platform() {}
678 683
679 WebThread* m_mainThread; 684 WebThread* m_mainThread;
680 }; 685 };
681 686
682 } // namespace blink 687 } // namespace blink
683 688
684 #endif 689 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698