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

Side by Side Diff: cc/thread_proxy.cc

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some missed intstuff Created 8 years, 1 month 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
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 #include "config.h" 5 #include "config.h"
6 6
7 #include "cc/thread_proxy.h" 7 #include "cc/thread_proxy.h"
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "cc/delay_based_time_source.h" 10 #include "cc/delay_based_time_source.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 DCHECK(isMainThread()); 58 DCHECK(isMainThread());
59 } 59 }
60 60
61 ThreadProxy::~ThreadProxy() 61 ThreadProxy::~ThreadProxy()
62 { 62 {
63 TRACE_EVENT0("cc", "ThreadProxy::~ThreadProxy"); 63 TRACE_EVENT0("cc", "ThreadProxy::~ThreadProxy");
64 DCHECK(isMainThread()); 64 DCHECK(isMainThread());
65 DCHECK(!m_started); 65 DCHECK(!m_started);
66 } 66 }
67 67
68 bool ThreadProxy::compositeAndReadback(void *pixels, const IntRect& rect) 68 bool ThreadProxy::compositeAndReadback(void *pixels, const gfx::Rect& rect)
69 { 69 {
70 TRACE_EVENT0("cc", "ThreadPRoxy::compositeAndReadback"); 70 TRACE_EVENT0("cc", "ThreadPRoxy::compositeAndReadback");
71 DCHECK(isMainThread()); 71 DCHECK(isMainThread());
72 DCHECK(m_layerTreeHost); 72 DCHECK(m_layerTreeHost);
73 73
74 if (!m_layerTreeHost->initializeRendererIfNeeded()) { 74 if (!m_layerTreeHost->initializeRendererIfNeeded()) {
75 TRACE_EVENT0("cc", "compositeAndReadback_EarlyOut_LR_Uninitialized"); 75 TRACE_EVENT0("cc", "compositeAndReadback_EarlyOut_LR_Uninitialized");
76 return false; 76 return false;
77 } 77 }
78 78
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() 963 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState()
964 : monotonicFrameBeginTime(0) 964 : monotonicFrameBeginTime(0)
965 { 965 {
966 } 966 }
967 967
968 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() 968 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState()
969 { 969 {
970 } 970 }
971 971
972 } // namespace cc 972 } // namespace cc
OLDNEW
« cc/layer_tiling_data.cc ('K') | « cc/thread_proxy.h ('k') | cc/tile_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698