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

Side by Side Diff: cc/layers/picture_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 state->SetDouble("ideal_contents_scale", ideal_contents_scale_); 1013 state->SetDouble("ideal_contents_scale", ideal_contents_scale_);
1014 state->Set("tilings", tilings_->AsValue().release()); 1014 state->Set("tilings", tilings_->AsValue().release());
1015 state->Set("pictures", pile_->AsValue().release()); 1015 state->Set("pictures", pile_->AsValue().release());
1016 state->Set("invalidation", invalidation_.AsValue().release()); 1016 state->Set("invalidation", invalidation_.AsValue().release());
1017 } 1017 }
1018 1018
1019 size_t PictureLayerImpl::GPUMemoryUsageInBytes() const { 1019 size_t PictureLayerImpl::GPUMemoryUsageInBytes() const {
1020 return tilings_->GPUMemoryUsageInBytes(); 1020 return tilings_->GPUMemoryUsageInBytes();
1021 } 1021 }
1022 1022
1023 bool PictureLayerImpl::CanDrawInTilelessSoftwareMode() const {
1024 return true;
1025 }
1026
1023 } // namespace cc 1027 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698