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

Side by Side Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h

Issue 79123004: Implemented failIfMajorPerformanceCaveat WebGL context creation attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
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 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 GREEN_SIZE = 0x3023, 654 GREEN_SIZE = 0x3023,
655 RED_SIZE = 0x3024, 655 RED_SIZE = 0x3024,
656 DEPTH_SIZE = 0x3025, 656 DEPTH_SIZE = 0x3025,
657 STENCIL_SIZE = 0x3026, 657 STENCIL_SIZE = 0x3026,
658 SAMPLES = 0x3031, 658 SAMPLES = 0x3031,
659 SAMPLE_BUFFERS = 0x3032, 659 SAMPLE_BUFFERS = 0x3032,
660 HEIGHT = 0x3056, 660 HEIGHT = 0x3056,
661 WIDTH = 0x3057, 661 WIDTH = 0x3057,
662 NONE = 0x3038, // Attrib list = terminator 662 NONE = 0x3038, // Attrib list = terminator
663 SHARE_RESOURCES = 0x10000, 663 SHARE_RESOURCES = 0x10000,
664 BIND_GENERATES_RESOURCES = 0x10001 664 BIND_GENERATES_RESOURCES = 0x10001,
665 FAIL_IF_MAJOR_PERF_CAVEAT = 0x10002
piman 2013/11/20 22:44:55 Can you also implement this in the in-process cont
665 }; 666 };
666 friend class WebGraphicsContext3DErrorMessageCallback; 667 friend class WebGraphicsContext3DErrorMessageCallback;
667 668
668 // Initialize the underlying GL context. May be called multiple times; second 669 // Initialize the underlying GL context. May be called multiple times; second
669 // and subsequent calls are ignored. Must be called from the thread that is 670 // and subsequent calls are ignored. Must be called from the thread that is
670 // going to use this object to issue GL commands (which might not be the main 671 // going to use this object to issue GL commands (which might not be the main
671 // thread). 672 // thread).
672 bool MaybeInitializeGL(); 673 bool MaybeInitializeGL();
673 674
674 bool InitializeCommandBuffer(bool onscreen); 675 bool InitializeCommandBuffer(bool onscreen);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 bool bind_generates_resources_; 737 bool bind_generates_resources_;
737 bool use_echo_for_swap_ack_; 738 bool use_echo_for_swap_ack_;
738 SharedMemoryLimits mem_limits_; 739 SharedMemoryLimits mem_limits_;
739 740
740 uint32_t flush_id_; 741 uint32_t flush_id_;
741 }; 742 };
742 743
743 } // namespace content 744 } // namespace content
744 745
745 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 746 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698