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

Side by Side Diff: services/gfx/compositor/compositor_engine.cc

Issue 1782733002: Mozart: The great RectF-ication. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-9
Patch Set: rebase Created 4 years, 9 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 | « services/gfx/compositor/compositor_engine.h ('k') | services/gfx/compositor/graph/node_def.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "services/gfx/compositor/compositor_engine.h" 5 #include "services/gfx/compositor/compositor_engine.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <sstream> 8 #include <sstream>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 // Update the root. 264 // Update the root.
265 if (renderer_state->ClearRootScene()) { 265 if (renderer_state->ClearRootScene()) {
266 ScheduleFrameForRenderer(renderer_state, 266 ScheduleFrameForRenderer(renderer_state,
267 Scheduler::SchedulingMode::kSnapshot); 267 Scheduler::SchedulingMode::kSnapshot);
268 } 268 }
269 } 269 }
270 270
271 void CompositorEngine::HitTest( 271 void CompositorEngine::HitTest(
272 RendererState* renderer_state, 272 RendererState* renderer_state,
273 mojo::PointPtr point, 273 mojo::PointFPtr point,
274 const mojo::gfx::composition::HitTester::HitTestCallback& callback) { 274 const mojo::gfx::composition::HitTester::HitTestCallback& callback) {
275 DCHECK(IsRendererStateRegisteredDebug(renderer_state)); 275 DCHECK(IsRendererStateRegisteredDebug(renderer_state));
276 DCHECK(point); 276 DCHECK(point);
277 DVLOG(1) << "HitTest: renderer=" << renderer_state << ", point=" << point; 277 DVLOG(1) << "HitTest: renderer=" << renderer_state << ", point=" << point;
278 278
279 auto result = mojo::gfx::composition::HitTestResult::New(); 279 auto result = mojo::gfx::composition::HitTestResult::New();
280 280
281 if (renderer_state->visible_snapshot()) { 281 if (renderer_state->visible_snapshot()) {
282 DCHECK(!renderer_state->visible_snapshot()->is_blocked()); 282 DCHECK(!renderer_state->visible_snapshot()->is_blocked());
283 renderer_state->visible_snapshot()->HitTest(*point, result.get()); 283 renderer_state->visible_snapshot()->HitTest(*point, result.get());
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 464
465 SceneDef::Disposition disposition = 465 SceneDef::Disposition disposition =
466 PresentScene(scene_state, presentation_time); 466 PresentScene(scene_state, presentation_time);
467 if (disposition == SceneDef::Disposition::kFailed) 467 if (disposition == SceneDef::Disposition::kFailed)
468 DestroyScene(scene_state); 468 DestroyScene(scene_state);
469 else if (disposition == SceneDef::Disposition::kSucceeded) 469 else if (disposition == SceneDef::Disposition::kSucceeded)
470 InvalidateScene(scene_state); 470 InvalidateScene(scene_state);
471 } 471 }
472 472
473 } // namespace compositor 473 } // namespace compositor
OLDNEW
« no previous file with comments | « services/gfx/compositor/compositor_engine.h ('k') | services/gfx/compositor/graph/node_def.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698