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

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

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compilefix Created 6 years, 3 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.h ('k') | cc/layers/layer_client.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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.h" 5 #include "cc/layers/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 } 1064 }
1065 1065
1066 bool Layer::NeedMoreUpdates() { 1066 bool Layer::NeedMoreUpdates() {
1067 return false; 1067 return false;
1068 } 1068 }
1069 1069
1070 bool Layer::IsSuitableForGpuRasterization() const { 1070 bool Layer::IsSuitableForGpuRasterization() const {
1071 return true; 1071 return true;
1072 } 1072 }
1073 1073
1074 scoped_refptr<base::debug::ConvertableToTraceFormat> Layer::TakeDebugInfo() { 1074 scoped_refptr<LayerDebugInfo> Layer::TakeDebugInfo() {
1075 if (client_) 1075 if (client_)
1076 return client_->TakeDebugInfo(); 1076 return client_->TakeDebugInfo();
1077 else 1077 else
1078 return NULL; 1078 return NULL;
1079 } 1079 }
1080 1080
1081 void Layer::CreateRenderSurface() { 1081 void Layer::CreateRenderSurface() {
1082 DCHECK(!draw_properties_.render_surface); 1082 DCHECK(!draw_properties_.render_surface);
1083 draw_properties_.render_surface = make_scoped_ptr(new RenderSurface(this)); 1083 draw_properties_.render_surface = make_scoped_ptr(new RenderSurface(this));
1084 draw_properties_.render_target = this; 1084 draw_properties_.render_target = this;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 1233
1234 void Layer::RunMicroBenchmark(MicroBenchmark* benchmark) { 1234 void Layer::RunMicroBenchmark(MicroBenchmark* benchmark) {
1235 benchmark->RunOnLayer(this); 1235 benchmark->RunOnLayer(this);
1236 } 1236 }
1237 1237
1238 bool Layer::HasDelegatedContent() const { 1238 bool Layer::HasDelegatedContent() const {
1239 return false; 1239 return false;
1240 } 1240 }
1241 1241
1242 } // namespace cc 1242 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698