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

Side by Side Diff: cc/layers/layer_impl.cc

Issue 16211002: Skip drawing unsupported layers in forced software mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "cc/animation/animation_registrar.h" 9 #include "cc/animation/animation_registrar.h"
10 #include "cc/animation/scrollbar_animation_controller.h" 10 #include "cc/animation/scrollbar_animation_controller.h"
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 } 1151 }
1152 1152
1153 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } 1153 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; }
1154 1154
1155 scoped_ptr<base::Value> LayerImpl::AsValue() const { 1155 scoped_ptr<base::Value> LayerImpl::AsValue() const {
1156 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 1156 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
1157 AsValueInto(state.get()); 1157 AsValueInto(state.get());
1158 return state.PassAs<base::Value>(); 1158 return state.PassAs<base::Value>();
1159 } 1159 }
1160 1160
1161 bool LayerImpl::CanDrawInTilelessSoftwareMode() const {
1162 return false;
1163 }
1164
1161 } // namespace cc 1165 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698