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

Unified Diff: services/ui/ws/frame_generator.cc

Issue 2720503008: Add cc::SurfaceInfo::is_valid() (Closed)
Patch Set: Added Log() Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/ws/frame_generator.cc
diff --git a/services/ui/ws/frame_generator.cc b/services/ui/ws/frame_generator.cc
index a62aa6efb898cb7c073d7571e08ae37304aa4c9e..b1574c4309aed1a6f18ff7b26dc21a7339066e7f 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -43,12 +43,12 @@ void FrameGenerator::SetDeviceScaleFactor(float device_scale_factor) {
if (device_scale_factor_ == device_scale_factor)
return;
device_scale_factor_ = device_scale_factor;
- if (window_manager_surface_info_.id().is_valid())
+ if (window_manager_surface_info_.is_valid())
compositor_frame_sink_->SetNeedsBeginFrame(true);
}
void FrameGenerator::OnSurfaceCreated(const cc::SurfaceInfo& surface_info) {
- DCHECK(surface_info.id().is_valid());
+ DCHECK(surface_info.is_valid());
// Only handle embedded surfaces changing here. The display root surface
// changing is handled immediately after the CompositorFrame is submitted.
@@ -59,7 +59,7 @@ void FrameGenerator::OnSurfaceCreated(const cc::SurfaceInfo& surface_info) {
}
void FrameGenerator::OnWindowDamaged() {
- if (window_manager_surface_info_.id().is_valid())
+ if (window_manager_surface_info_.is_valid())
compositor_frame_sink_->SetNeedsBeginFrame(true);
}
@@ -134,7 +134,7 @@ cc::CompositorFrame FrameGenerator::GenerateCompositorFrame(
}
frame.metadata.device_scale_factor = device_scale_factor_;
- if (window_manager_surface_info_.id().is_valid()) {
+ if (window_manager_surface_info_.is_valid()) {
frame.metadata.referenced_surfaces.push_back(
window_manager_surface_info_.id());
}
@@ -143,7 +143,7 @@ cc::CompositorFrame FrameGenerator::GenerateCompositorFrame(
}
void FrameGenerator::DrawWindow(cc::RenderPass* pass) {
- DCHECK(window_manager_surface_info_.id().is_valid());
+ DCHECK(window_manager_surface_info_.is_valid());
const gfx::Rect bounds_at_origin(
window_manager_surface_info_.size_in_pixels());
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698