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

Side by Side Diff: cc/resources/drawing_display_item.cc

Issue 1101783002: ui: Cache the output of View::OnPaint when the View isn't invalid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cache: . Created 5 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 | « cc/resources/drawing_display_item.h ('k') | ui/compositor/BUILD.gn » ('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 "cc/resources/drawing_display_item.h" 5 #include "cc/resources/drawing_display_item.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/trace_event/trace_event_argument.h" 10 #include "base/trace_event/trace_event_argument.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 "cullRect", 55 "cullRect",
56 base::StringPrintf("[%f,%f,%f,%f]", picture_->cullRect().x(), 56 base::StringPrintf("[%f,%f,%f,%f]", picture_->cullRect().x(),
57 picture_->cullRect().y(), picture_->cullRect().width(), 57 picture_->cullRect().y(), picture_->cullRect().width(),
58 picture_->cullRect().height())); 58 picture_->cullRect().height()));
59 std::string b64_picture; 59 std::string b64_picture;
60 PictureDebugUtil::SerializeAsBase64(picture_.get(), &b64_picture); 60 PictureDebugUtil::SerializeAsBase64(picture_.get(), &b64_picture);
61 array->SetString("skp64", b64_picture); 61 array->SetString("skp64", b64_picture);
62 array->EndDictionary(); 62 array->EndDictionary();
63 } 63 }
64 64
65 scoped_ptr<DrawingDisplayItem> DrawingDisplayItem::Clone() {
66 return Create(picture_);
67 }
68
65 } // namespace cc 69 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/drawing_display_item.h ('k') | ui/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698