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

Side by Side Diff: components/mus/public/cpp/lib/window.cc

Issue 1837093003: NOSUBMIT: Demonstrate accelerated layer painting problem in mus/mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « ash/system/date/date_default_view.cc ('k') | mash/wm/window_manager.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/mus/public/cpp/window.h" 5 #include "components/mus/public/cpp/window.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 : connection_(connection), 498 : connection_(connection),
499 id_(id), 499 id_(id),
500 parent_(nullptr), 500 parent_(nullptr),
501 stacking_target_(nullptr), 501 stacking_target_(nullptr),
502 transient_parent_(nullptr), 502 transient_parent_(nullptr),
503 is_modal_(false), 503 is_modal_(false),
504 input_event_handler_(nullptr), 504 input_event_handler_(nullptr),
505 viewport_metrics_(CreateEmptyViewportMetrics()), 505 viewport_metrics_(CreateEmptyViewportMetrics()),
506 visible_(false), 506 visible_(false),
507 cursor_id_(mojom::Cursor::CURSOR_NULL), 507 cursor_id_(mojom::Cursor::CURSOR_NULL),
508 drawn_(false) {} 508 drawn_(false) {
509 LOG(ERROR) << "JAMES new mus::Window";
510 }
509 511
510 WindowTreeClientImpl* Window::tree_client() { 512 WindowTreeClientImpl* Window::tree_client() {
511 return static_cast<WindowTreeClientImpl*>(connection_); 513 return static_cast<WindowTreeClientImpl*>(connection_);
512 } 514 }
513 515
514 void Window::SetSharedPropertyInternal(const std::string& name, 516 void Window::SetSharedPropertyInternal(const std::string& name,
515 const std::vector<uint8_t>* value) { 517 const std::vector<uint8_t>* value) {
516 if (!OwnsWindowOrIsRoot(this)) 518 if (!OwnsWindowOrIsRoot(this))
517 return; 519 return;
518 520
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 notifier->NotifyWindowReordered(); 840 notifier->NotifyWindowReordered();
839 841
840 return true; 842 return true;
841 } 843 }
842 844
843 // static 845 // static
844 Window** Window::GetStackingTarget(Window* window) { 846 Window** Window::GetStackingTarget(Window* window) {
845 return &window->stacking_target_; 847 return &window->stacking_target_;
846 } 848 }
847 } // namespace mus 849 } // namespace mus
OLDNEW
« no previous file with comments | « ash/system/date/date_default_view.cc ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698