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

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: RebaseAndSolveTODOs 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/bind.h" 9 #include "base/bind.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 DCHECK(isMainThread()); 59 DCHECK(isMainThread());
60 } 60 }
61 61
62 ThreadProxy::~ThreadProxy() 62 ThreadProxy::~ThreadProxy()
63 { 63 {
64 TRACE_EVENT0("cc", "ThreadProxy::~ThreadProxy"); 64 TRACE_EVENT0("cc", "ThreadProxy::~ThreadProxy");
65 DCHECK(isMainThread()); 65 DCHECK(isMainThread());
66 DCHECK(!m_started); 66 DCHECK(!m_started);
67 } 67 }
68 68
69 bool ThreadProxy::compositeAndReadback(void *pixels, const IntRect& rect) 69 bool ThreadProxy::compositeAndReadback(void *pixels, const gfx::Rect& rect)
70 { 70 {
71 TRACE_EVENT0("cc", "ThreadPRoxy::compositeAndReadback"); 71 TRACE_EVENT0("cc", "ThreadPRoxy::compositeAndReadback");
72 DCHECK(isMainThread()); 72 DCHECK(isMainThread());
73 DCHECK(m_layerTreeHost); 73 DCHECK(m_layerTreeHost);
74 DCHECK(!m_deferCommits); 74 DCHECK(!m_deferCommits);
75 75
76 if (!m_layerTreeHost->initializeRendererIfNeeded()) { 76 if (!m_layerTreeHost->initializeRendererIfNeeded()) {
77 TRACE_EVENT0("cc", "compositeAndReadback_EarlyOut_LR_Uninitialized"); 77 TRACE_EVENT0("cc", "compositeAndReadback_EarlyOut_LR_Uninitialized");
78 return false; 78 return false;
79 } 79 }
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 983
984 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() 984 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState()
985 { 985 {
986 } 986 }
987 987
988 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() 988 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState()
989 { 989 {
990 } 990 }
991 991
992 } // namespace cc 992 } // namespace cc
OLDNEW
« cc/layer.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