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

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

Issue 1168943002: Remove ContextProvider::IsContextLost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contextprovider: . Created 5 years, 6 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
« no previous file with comments | « cc/output/program_binding.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 kOpenGL_GrBackend, 90 kOpenGL_GrBackend,
91 reinterpret_cast<GrBackendContext>(null_interface.get()))); 91 reinterpret_cast<GrBackendContext>(null_interface.get())));
92 return gr_context_.get(); 92 return gr_context_.get();
93 } 93 }
94 void InvalidateGrContext(uint32_t state) override { 94 void InvalidateGrContext(uint32_t state) override {
95 if (gr_context_) 95 if (gr_context_)
96 gr_context_.get()->resetContext(state); 96 gr_context_.get()->resetContext(state);
97 } 97 }
98 void SetupLock() override {} 98 void SetupLock() override {}
99 base::Lock* GetLock() override { return &context_lock_; } 99 base::Lock* GetLock() override { return &context_lock_; }
100 bool IsContextLost() override { return false; }
101 void VerifyContexts() override {} 100 void VerifyContexts() override {}
102 void DeleteCachedResources() override {} 101 void DeleteCachedResources() override {}
103 bool DestroyedOnMainThread() override { return false; } 102 bool DestroyedOnMainThread() override { return false; }
104 void SetLostContextCallback(const LostContextCallback& cb) override {} 103 void SetLostContextCallback(const LostContextCallback& cb) override {}
105 void SetMemoryPolicyChangedCallback( 104 void SetMemoryPolicyChangedCallback(
106 const MemoryPolicyChangedCallback& cb) override {} 105 const MemoryPolicyChangedCallback& cb) override {}
107 106
108 private: 107 private:
109 ~PerfContextProvider() override {} 108 ~PerfContextProvider() override {}
110 109
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 RunBuildTileTaskQueueTest("1_0", 1, 0); 511 RunBuildTileTaskQueueTest("1_0", 1, 0);
513 RunBuildTileTaskQueueTest("32_0", 32, 0); 512 RunBuildTileTaskQueueTest("32_0", 32, 0);
514 RunBuildTileTaskQueueTest("1_1", 1, 1); 513 RunBuildTileTaskQueueTest("1_1", 1, 1);
515 RunBuildTileTaskQueueTest("32_1", 32, 1); 514 RunBuildTileTaskQueueTest("32_1", 32, 1);
516 RunBuildTileTaskQueueTest("1_4", 1, 4); 515 RunBuildTileTaskQueueTest("1_4", 1, 4);
517 RunBuildTileTaskQueueTest("32_4", 32, 4); 516 RunBuildTileTaskQueueTest("32_4", 32, 4);
518 } 517 }
519 518
520 } // namespace 519 } // namespace
521 } // namespace cc 520 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/program_binding.cc ('k') | cc/test/test_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698