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

Side by Side Diff: cc/raster/tile_task_worker_pool_perftest.cc

Issue 1412923004: Revert of Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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/output/output_surface_unittest.cc ('k') | cc/test/test_context_provider.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 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/raster/tile_task_worker_pool.h" 5 #include "cc/raster/tile_task_worker_pool.h"
6 6
7 #include "base/test/test_simple_task_runner.h" 7 #include "base/test/test_simple_task_runner.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "cc/debug/lap_timer.h" 9 #include "cc/debug/lap_timer.h"
10 #include "cc/output/context_provider.h" 10 #include "cc/output/context_provider.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return gr_context_.get(); 91 return gr_context_.get();
92 } 92 }
93 void InvalidateGrContext(uint32_t state) override { 93 void InvalidateGrContext(uint32_t state) override {
94 if (gr_context_) 94 if (gr_context_)
95 gr_context_.get()->resetContext(state); 95 gr_context_.get()->resetContext(state);
96 } 96 }
97 void SetupLock() override {} 97 void SetupLock() override {}
98 base::Lock* GetLock() override { return &context_lock_; } 98 base::Lock* GetLock() override { return &context_lock_; }
99 void DeleteCachedResources() override {} 99 void DeleteCachedResources() override {}
100 void SetLostContextCallback(const LostContextCallback& cb) override {} 100 void SetLostContextCallback(const LostContextCallback& cb) override {}
101 void SetMemoryPolicyChangedCallback(
102 const MemoryPolicyChangedCallback& cb) override {}
101 103
102 private: 104 private:
103 ~PerfContextProvider() override {} 105 ~PerfContextProvider() override {}
104 106
105 scoped_ptr<PerfGLES2Interface> context_gl_; 107 scoped_ptr<PerfGLES2Interface> context_gl_;
106 skia::RefPtr<class GrContext> gr_context_; 108 skia::RefPtr<class GrContext> gr_context_;
107 TestContextSupport support_; 109 TestContextSupport support_;
108 base::Lock context_lock_; 110 base::Lock context_lock_;
109 }; 111 };
110 112
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 RunBuildTileTaskQueueTest("1_0", 1, 0); 489 RunBuildTileTaskQueueTest("1_0", 1, 0);
488 RunBuildTileTaskQueueTest("32_0", 32, 0); 490 RunBuildTileTaskQueueTest("32_0", 32, 0);
489 RunBuildTileTaskQueueTest("1_1", 1, 1); 491 RunBuildTileTaskQueueTest("1_1", 1, 1);
490 RunBuildTileTaskQueueTest("32_1", 32, 1); 492 RunBuildTileTaskQueueTest("32_1", 32, 1);
491 RunBuildTileTaskQueueTest("1_4", 1, 4); 493 RunBuildTileTaskQueueTest("1_4", 1, 4);
492 RunBuildTileTaskQueueTest("32_4", 32, 4); 494 RunBuildTileTaskQueueTest("32_4", 32, 4);
493 } 495 }
494 496
495 } // namespace 497 } // namespace
496 } // namespace cc 498 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/test/test_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698