OLD | NEW |
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 "gpu/blink/webgraphicscontext3d_impl.h" | 5 #include "gpu/blink/webgraphicscontext3d_impl.h" |
6 | 6 |
7 #include "base/atomicops.h" | 7 #include "base/atomicops.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "gpu/GLES2/gl2extchromium.h" | 10 #include "gpu/GLES2/gl2extchromium.h" |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 WGC3Denum, | 878 WGC3Denum, |
879 WGC3Denum); | 879 WGC3Denum); |
880 DELEGATE_TO_GL_1(populateSubscribedValuesCHROMIUM, | 880 DELEGATE_TO_GL_1(populateSubscribedValuesCHROMIUM, |
881 PopulateSubscribedValuesCHROMIUM, | 881 PopulateSubscribedValuesCHROMIUM, |
882 WGC3Denum); | 882 WGC3Denum); |
883 DELEGATE_TO_GL_3(uniformValuebufferCHROMIUM, | 883 DELEGATE_TO_GL_3(uniformValuebufferCHROMIUM, |
884 UniformValuebufferCHROMIUM, | 884 UniformValuebufferCHROMIUM, |
885 WGC3Dint, | 885 WGC3Dint, |
886 WGC3Denum, | 886 WGC3Denum, |
887 WGC3Denum); | 887 WGC3Denum); |
| 888 DELEGATE_TO_GL_2(traceBeginCHROMIUM, |
| 889 TraceBeginCHROMIUM, |
| 890 const WGC3Dchar*, |
| 891 const WGC3Dchar*); |
| 892 DELEGATE_TO_GL(traceEndCHROMIUM, TraceEndCHROMIUM); |
888 | 893 |
889 void WebGraphicsContext3DImpl::insertEventMarkerEXT( | 894 void WebGraphicsContext3DImpl::insertEventMarkerEXT( |
890 const WGC3Dchar* marker) { | 895 const WGC3Dchar* marker) { |
891 gl_->InsertEventMarkerEXT(0, marker); | 896 gl_->InsertEventMarkerEXT(0, marker); |
892 } | 897 } |
893 | 898 |
894 void WebGraphicsContext3DImpl::pushGroupMarkerEXT( | 899 void WebGraphicsContext3DImpl::pushGroupMarkerEXT( |
895 const WGC3Dchar* marker) { | 900 const WGC3Dchar* marker) { |
896 gl_->PushGroupMarkerEXT(0, marker); | 901 gl_->PushGroupMarkerEXT(0, marker); |
897 } | 902 } |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 output_attribs->depth_size = attributes.depth ? 24 : 0; | 1026 output_attribs->depth_size = attributes.depth ? 24 : 0; |
1022 output_attribs->stencil_size = attributes.stencil ? 8 : 0; | 1027 output_attribs->stencil_size = attributes.stencil ? 8 : 0; |
1023 output_attribs->samples = attributes.antialias ? 4 : 0; | 1028 output_attribs->samples = attributes.antialias ? 4 : 0; |
1024 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; | 1029 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; |
1025 output_attribs->fail_if_major_perf_caveat = | 1030 output_attribs->fail_if_major_perf_caveat = |
1026 attributes.failIfMajorPerformanceCaveat; | 1031 attributes.failIfMajorPerformanceCaveat; |
1027 output_attribs->bind_generates_resource = false; | 1032 output_attribs->bind_generates_resource = false; |
1028 } | 1033 } |
1029 | 1034 |
1030 } // namespace gpu_blink | 1035 } // namespace gpu_blink |
OLD | NEW |