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

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

Issue 619843002: cc: Make separate interface for BeginFrame ipc from OutputSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/layers/texture_layer_unittest.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 "base/containers/hash_tables.h" 5 #include "base/containers/hash_tables.h"
6 #include "cc/animation/scrollbar_animation_controller.h" 6 #include "cc/animation/scrollbar_animation_controller.h"
7 #include "cc/layers/append_quads_data.h" 7 #include "cc/layers/append_quads_data.h"
8 #include "cc/layers/painted_scrollbar_layer.h" 8 #include "cc/layers/painted_scrollbar_layer.h"
9 #include "cc/layers/painted_scrollbar_layer_impl.h" 9 #include "cc/layers/painted_scrollbar_layer_impl.h"
10 #include "cc/layers/scrollbar_layer_interface.h" 10 #include "cc/layers/scrollbar_layer_interface.h"
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 } 625 }
626 626
627 class FakeLayerTreeHost : public LayerTreeHost { 627 class FakeLayerTreeHost : public LayerTreeHost {
628 public: 628 public:
629 FakeLayerTreeHost(FakeLayerTreeHostClient* client, 629 FakeLayerTreeHost(FakeLayerTreeHostClient* client,
630 const LayerTreeSettings& settings) 630 const LayerTreeSettings& settings)
631 : LayerTreeHost(client, nullptr, nullptr, settings), 631 : LayerTreeHost(client, nullptr, nullptr, settings),
632 next_id_(1), 632 next_id_(1),
633 total_ui_resource_created_(0), 633 total_ui_resource_created_(0),
634 total_ui_resource_deleted_(0) { 634 total_ui_resource_deleted_(0) {
635 InitializeSingleThreaded(client, base::MessageLoopProxy::current()); 635 InitializeSingleThreaded(client,
636 base::MessageLoopProxy::current(),
637 nullptr);
636 } 638 }
637 639
638 UIResourceId CreateUIResource(UIResourceClient* content) override { 640 UIResourceId CreateUIResource(UIResourceClient* content) override {
639 total_ui_resource_created_++; 641 total_ui_resource_created_++;
640 UIResourceId nid = next_id_++; 642 UIResourceId nid = next_id_++;
641 ui_resource_bitmap_map_.insert( 643 ui_resource_bitmap_map_.insert(
642 std::make_pair(nid, content->GetBitmap(nid, false))); 644 std::make_pair(nid, content->GetBitmap(nid, false)));
643 return nid; 645 return nid;
644 } 646 }
645 647
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 TestScale(gfx::Rect(1240, 0, 15, 1333), 2.7754839f); 1095 TestScale(gfx::Rect(1240, 0, 15, 1333), 2.7754839f);
1094 TestScale(gfx::Rect(1240, 0, 15, 677), 2.46677136f); 1096 TestScale(gfx::Rect(1240, 0, 15, 677), 2.46677136f);
1095 1097
1096 // Horizontal Scrollbars. 1098 // Horizontal Scrollbars.
1097 TestScale(gfx::Rect(0, 1240, 1333, 15), 2.7754839f); 1099 TestScale(gfx::Rect(0, 1240, 1333, 15), 2.7754839f);
1098 TestScale(gfx::Rect(0, 1240, 677, 15), 2.46677136f); 1100 TestScale(gfx::Rect(0, 1240, 677, 15), 2.46677136f);
1099 } 1101 }
1100 1102
1101 } // namespace 1103 } // namespace
1102 } // namespace cc 1104 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/layers/texture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698