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

Side by Side Diff: ui/compositor/layer_unittest.cc

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor input event changes Created 8 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 ended_ = true; 283 ended_ = true;
284 } 284 }
285 285
286 virtual void OnCompositingAborted(Compositor* compositor) OVERRIDE { 286 virtual void OnCompositingAborted(Compositor* compositor) OVERRIDE {
287 aborted_ = true; 287 aborted_ = true;
288 } 288 }
289 289
290 virtual void OnCompositingLockStateChanged(Compositor* compositor) OVERRIDE { 290 virtual void OnCompositingLockStateChanged(Compositor* compositor) OVERRIDE {
291 } 291 }
292 292
293 virtual void OnReceivedLatencyInfo(Compositor*,
294 const WebKit::WebLatencyInfoImpl&) OVERRIDE {}
295
293 bool started_; 296 bool started_;
294 bool ended_; 297 bool ended_;
295 bool aborted_; 298 bool aborted_;
296 299
297 DISALLOW_COPY_AND_ASSIGN(TestCompositorObserver); 300 DISALLOW_COPY_AND_ASSIGN(TestCompositorObserver);
298 }; 301 };
299 302
300 } // namespace 303 } // namespace
301 304
302 #if defined(OS_WIN) 305 #if defined(OS_WIN)
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 1236
1234 // Resize layer. 1237 // Resize layer.
1235 child->SetBounds(gfx::Rect(200, 200, 400, 400)); 1238 child->SetBounds(gfx::Rect(200, 200, 400, 400));
1236 child->SetVisible(true); 1239 child->SetVisible(true);
1237 EXPECT_TRUE(schedule_draw_invoked_); 1240 EXPECT_TRUE(schedule_draw_invoked_);
1238 DrawTree(root.get()); 1241 DrawTree(root.get());
1239 EXPECT_TRUE(delegate.painted()); 1242 EXPECT_TRUE(delegate.painted());
1240 } 1243 }
1241 1244
1242 } // namespace ui 1245 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698