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

Unified Diff: cc/output/delegating_renderer.cc

Issue 16069004: cc: Remove legacy accelerated painting path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unused variable warning Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/content_layer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/delegating_renderer.cc
diff --git a/cc/output/delegating_renderer.cc b/cc/output/delegating_renderer.cc
index 76093c410b8fed60ca9f8603cbd03f23b66d009b..3b5839ecd83b24eba66d67354d61aaa8341c89cc 100644
--- a/cc/output/delegating_renderer.cc
+++ b/cc/output/delegating_renderer.cc
@@ -80,16 +80,13 @@ bool DelegatingRenderer::Initialize() {
// TODO(danakj): We need non-GPU-specific paths for these things. This
// renderer shouldn't need to use context3d extensions directly.
- bool has_read_bgra = false;
bool has_set_visibility = false;
bool has_io_surface = false;
bool has_arb_texture_rect = false;
bool has_egl_image = false;
bool has_map_image = false;
for (size_t i = 0; i < extensions.size(); ++i) {
- if (extensions[i] == "GL_EXT_read_format_bgra") {
- has_read_bgra = true;
- } else if (extensions[i] == "GL_CHROMIUM_set_visibility") {
+ if (extensions[i] == "GL_CHROMIUM_set_visibility") {
has_set_visibility = true;
} else if (extensions[i] == "GL_CHROMIUM_iosurface") {
has_io_surface = true;
@@ -105,11 +102,6 @@ bool DelegatingRenderer::Initialize() {
if (has_io_surface)
DCHECK(has_arb_texture_rect);
- capabilities_.using_accelerated_painting =
- Settings().accelerate_painting &&
- capabilities_.best_texture_format == GL_BGRA_EXT &&
- has_read_bgra;
-
// TODO(piman): loop visibility to GPU process?
capabilities_.using_set_visibility = has_set_visibility;
« no previous file with comments | « cc/layers/content_layer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698