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

Side by Side Diff: cc/resources/picture_unittest.cc

Issue 253013003: Enable disabling WebCore::GraphicsContext in telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed git issues. 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/resources/picture.h" 5 #include "cc/resources/picture.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "cc/test/fake_content_layer_client.h" 10 #include "cc/test/fake_content_layer_client.h"
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 Picture::RECORD_WITH_SK_NULL_CANVAS); 473 Picture::RECORD_WITH_SK_NULL_CANVAS);
474 EXPECT_TRUE(content_layer_client.last_canvas() != NULL); 474 EXPECT_TRUE(content_layer_client.last_canvas() != NULL);
475 EXPECT_TRUE(picture); 475 EXPECT_TRUE(picture);
476 476
477 picture = Picture::Create(layer_rect, 477 picture = Picture::Create(layer_rect,
478 &content_layer_client, 478 &content_layer_client,
479 tile_grid_info, 479 tile_grid_info,
480 false, 480 false,
481 0, 481 0,
482 Picture::RECORD_WITH_PAINTING_DISABLED); 482 Picture::RECORD_WITH_PAINTING_DISABLED);
483 EXPECT_EQ(NULL, content_layer_client.last_canvas()); 483 EXPECT_TRUE(content_layer_client.last_canvas() != NULL);
Sami 2014/04/29 10:57:23 Could we also check that content_layer_client was
Stephen Chennney 2014/04/29 20:30:45 There is no way to get to the context to ask it if
Sami 2014/04/29 20:47:48 I was more thinking of extending cc's FakeContentL
484 EXPECT_TRUE(picture); 484 EXPECT_TRUE(picture);
485 485
486 EXPECT_EQ(3, Picture::RECORDING_MODE_COUNT); 486 EXPECT_EQ(3, Picture::RECORDING_MODE_COUNT);
487 } 487 }
488 488
489 } // namespace 489 } // namespace
490 } // namespace cc 490 } // namespace cc
OLDNEW
« cc/resources/picture.cc ('K') | « cc/resources/picture.cc ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698