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

Side by Side Diff: ui/compositor/compositor.cc

Issue 89243003: Move EmptyString, kWhitespace and the BOM to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « testing/android/native_test_util.cc ('k') | ui/oak/oak_aura_window_display.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/compositor/compositor.h" 5 #include "ui/compositor/compositor.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 Texture::Texture(bool flipped, const gfx::Size& size, float device_scale_factor) 84 Texture::Texture(bool flipped, const gfx::Size& size, float device_scale_factor)
85 : size_(size), 85 : size_(size),
86 flipped_(flipped), 86 flipped_(flipped),
87 device_scale_factor_(device_scale_factor) { 87 device_scale_factor_(device_scale_factor) {
88 } 88 }
89 89
90 Texture::~Texture() { 90 Texture::~Texture() {
91 } 91 }
92 92
93 std::string Texture::Produce() { 93 std::string Texture::Produce() {
94 return EmptyString(); 94 return std::string();
95 } 95 }
96 96
97 CompositorLock::CompositorLock(Compositor* compositor) 97 CompositorLock::CompositorLock(Compositor* compositor)
98 : compositor_(compositor) { 98 : compositor_(compositor) {
99 base::MessageLoop::current()->PostDelayedTask( 99 base::MessageLoop::current()->PostDelayedTask(
100 FROM_HERE, 100 FROM_HERE,
101 base::Bind(&CompositorLock::CancelLock, AsWeakPtr()), 101 base::Bind(&CompositorLock::CancelLock, AsWeakPtr()),
102 base::TimeDelta::FromMilliseconds(kCompositorLockTimeoutMs)); 102 base::TimeDelta::FromMilliseconds(kCompositorLockTimeoutMs));
103 } 103 }
104 104
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 // CompositorObservers to be notified before starting another 616 // CompositorObservers to be notified before starting another
617 // draw cycle. 617 // draw cycle.
618 ScheduleDraw(); 618 ScheduleDraw();
619 } 619 }
620 FOR_EACH_OBSERVER(CompositorObserver, 620 FOR_EACH_OBSERVER(CompositorObserver,
621 observer_list_, 621 observer_list_,
622 OnCompositingEnded(this)); 622 OnCompositingEnded(this));
623 } 623 }
624 624
625 } // namespace ui 625 } // namespace ui
OLDNEW
« no previous file with comments | « testing/android/native_test_util.cc ('k') | ui/oak/oak_aura_window_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698