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

Side by Side Diff: gpu/command_buffer/service/feature_info.cc

Issue 8637014: Plumb thru that we cache the front buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 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
« no previous file with comments | « content/common/gpu/image_transport_surface_win.cc ('k') | third_party/khronos/GLES2/gl2ext.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include "gpu/command_buffer/service/feature_info.h" 7 #include "gpu/command_buffer/service/feature_info.h"
8 #include "gpu/command_buffer/service/gl_utils.h" 8 #include "gpu/command_buffer/service/gl_utils.h"
9 #include "ui/gfx/gl/gl_context.h" 9 #include "ui/gfx/gl/gl_context.h"
10 #include "ui/gfx/gl/gl_implementation.h" 10 #include "ui/gfx/gl/gl_implementation.h"
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // GL_OES_element_index_uint 386 // GL_OES_element_index_uint
387 387
388 feature_flags_.enable_texture_float_linear = enable_texture_float_linear; 388 feature_flags_.enable_texture_float_linear = enable_texture_float_linear;
389 feature_flags_.enable_texture_half_float_linear = 389 feature_flags_.enable_texture_half_float_linear =
390 enable_texture_half_float_linear; 390 enable_texture_half_float_linear;
391 feature_flags_.npot_ok = npot_ok; 391 feature_flags_.npot_ok = npot_ok;
392 392
393 if (ext.HaveAndDesire("GL_CHROMIUM_post_sub_buffer")) { 393 if (ext.HaveAndDesire("GL_CHROMIUM_post_sub_buffer")) {
394 AddExtensionString("GL_CHROMIUM_post_sub_buffer"); 394 AddExtensionString("GL_CHROMIUM_post_sub_buffer");
395 } 395 }
396
397 if (ext.HaveAndDesire("GL_CHROMIUM_front_buffer_cached")) {
398 AddExtensionString("GL_CHROMIUM_front_buffer_cached");
399 }
396 } 400 }
397 401
398 void FeatureInfo::AddExtensionString(const std::string& str) { 402 void FeatureInfo::AddExtensionString(const std::string& str) {
399 if (extensions_.find(str) == std::string::npos) { 403 if (extensions_.find(str) == std::string::npos) {
400 extensions_ += (extensions_.empty() ? "" : " ") + str; 404 extensions_ += (extensions_.empty() ? "" : " ") + str;
401 } 405 }
402 } 406 }
403 407
404 } // namespace gles2 408 } // namespace gles2
405 } // namespace gpu 409 } // namespace gpu
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_win.cc ('k') | third_party/khronos/GLES2/gl2ext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698