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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 2270533002: cc: Remove the software compositing bool from PrepareTextureMailbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@softwarerendering
Patch Set: remove-prepare-mailbox-param: bad-merge Created 4 years, 4 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/software_renderer.cc ('k') | cc/trees/layer_tree_host.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // resource, which is always positive. 230 // resource, which is always positive.
231 virtual UIResourceId CreateUIResource(UIResourceClient* client); 231 virtual UIResourceId CreateUIResource(UIResourceClient* client);
232 // Deletes a UI resource. May safely be called more than once. 232 // Deletes a UI resource. May safely be called more than once.
233 virtual void DeleteUIResource(UIResourceId id); 233 virtual void DeleteUIResource(UIResourceId id);
234 // Put the recreation of all UI resources into the resource queue after they 234 // Put the recreation of all UI resources into the resource queue after they
235 // were evicted on the impl thread. 235 // were evicted on the impl thread.
236 void RecreateUIResources(); 236 void RecreateUIResources();
237 237
238 virtual gfx::Size GetUIResourceSize(UIResourceId id) const; 238 virtual gfx::Size GetUIResourceSize(UIResourceId id) const;
239 239
240 bool UsingSharedMemoryResources();
241 int id() const { return id_; } 240 int id() const { return id_; }
242 241
243 // Returns the id of the benchmark on success, 0 otherwise. 242 // Returns the id of the benchmark on success, 0 otherwise.
244 int ScheduleMicroBenchmark(const std::string& benchmark_name, 243 int ScheduleMicroBenchmark(const std::string& benchmark_name,
245 std::unique_ptr<base::Value> value, 244 std::unique_ptr<base::Value> value,
246 const MicroBenchmark::DoneCallback& callback); 245 const MicroBenchmark::DoneCallback& callback);
247 // Returns true if the message was successfully delivered and handled. 246 // Returns true if the message was successfully delivered and handled.
248 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); 247 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value);
249 248
250 // When a SwapPromiseMonitor is created on the main thread, it calls 249 // When a SwapPromiseMonitor is created on the main thread, it calls
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 uint32_t surface_client_id_; 444 uint32_t surface_client_id_;
446 uint32_t next_surface_sequence_; 445 uint32_t next_surface_sequence_;
447 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; 446 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0;
448 447
449 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 448 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
450 }; 449 };
451 450
452 } // namespace cc 451 } // namespace cc
453 452
454 #endif // CC_TREES_LAYER_TREE_HOST_H_ 453 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698