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

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

Issue 265883013: cc: Add a flag to layers that returns true if the layer is in RSLL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: perftest fix Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/trees/layer_tree_host.cc » ('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 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/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/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "cc/animation/animation_registrar.h" 10 #include "cc/animation/animation_registrar.h"
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 bool converted_to_dictionary = 1493 bool converted_to_dictionary =
1494 debug_info_value->GetAsDictionary(&dictionary_value); 1494 debug_info_value->GetAsDictionary(&dictionary_value);
1495 DCHECK(converted_to_dictionary); 1495 DCHECK(converted_to_dictionary);
1496 state->MergeDictionary(dictionary_value); 1496 state->MergeDictionary(dictionary_value);
1497 } else { 1497 } else {
1498 NOTREACHED(); 1498 NOTREACHED();
1499 } 1499 }
1500 } 1500 }
1501 } 1501 }
1502 1502
1503 bool LayerImpl::IsDrawnRenderSurfaceLayerListMember() const {
1504 return draw_properties_.last_drawn_render_surface_layer_list_id ==
1505 layer_tree_impl_->current_render_surface_list_id();
1506 }
1507
1503 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } 1508 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; }
1504 1509
1505 scoped_ptr<base::Value> LayerImpl::AsValue() const { 1510 scoped_ptr<base::Value> LayerImpl::AsValue() const {
1506 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 1511 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
1507 AsValueInto(state.get()); 1512 AsValueInto(state.get());
1508 return state.PassAs<base::Value>(); 1513 return state.PassAs<base::Value>();
1509 } 1514 }
1510 1515
1511 void LayerImpl::RunMicroBenchmark(MicroBenchmarkImpl* benchmark) { 1516 void LayerImpl::RunMicroBenchmark(MicroBenchmarkImpl* benchmark) {
1512 benchmark->RunOnLayer(this); 1517 benchmark->RunOnLayer(this);
1513 } 1518 }
1514 } // namespace cc 1519 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698