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

Side by Side Diff: cc/test/test_in_process_context_provider.cc

Issue 2252163003: Update Context Client Visibility to use Scoped Pattern (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webview Created 4 years, 3 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/test/test_context_support.cc ('k') | cc/trees/layer_tree_host_impl.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/test/test_in_process_context_provider.h" 5 #include "cc/test/test_in_process_context_provider.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 case PlatformColor::SOURCE_FORMAT_BGRA8: 105 case PlatformColor::SOURCE_FORMAT_BGRA8:
106 capabilities.texture_format_bgra8888 = true; 106 capabilities.texture_format_bgra8888 = true;
107 break; 107 break;
108 } 108 }
109 return capabilities; 109 return capabilities;
110 } 110 }
111 111
112 void TestInProcessContextProvider::DeleteCachedResources() { 112 void TestInProcessContextProvider::DeleteCachedResources() {
113 if (gr_context_) 113 if (gr_context_)
114 gr_context_->FreeGpuResources(); 114 gr_context_->FreeGpuResources();
115
116 ContextSupport()->TrimResources();
115 } 117 }
116 118
117 void TestInProcessContextProvider::SetLostContextCallback( 119 void TestInProcessContextProvider::SetLostContextCallback(
118 const LostContextCallback& lost_context_callback) {} 120 const LostContextCallback& lost_context_callback) {}
119 121
120 } // namespace cc 122 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_context_support.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698