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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/transform_display_item.h ('k') | cc/resources/transparency_display_item.h » ('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/transform_display_item.h" 5 #include "cc/resources/transform_display_item.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/trace_event/trace_event_argument.h" 8 #include "base/trace_event/trace_event_argument.h"
9 #include "third_party/skia/include/core/SkCanvas.h" 9 #include "third_party/skia/include/core/SkCanvas.h"
10 10
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 int TransformDisplayItem::ApproximateOpCount() const { 31 int TransformDisplayItem::ApproximateOpCount() const {
32 return 1; 32 return 1;
33 } 33 }
34 34
35 size_t TransformDisplayItem::PictureMemoryUsage() const { 35 size_t TransformDisplayItem::PictureMemoryUsage() const {
36 return sizeof(gfx::Transform); 36 return sizeof(gfx::Transform);
37 } 37 }
38 38
39 void TransformDisplayItem::AsValueInto(base::debug::TracedValue* array) const { 39 void TransformDisplayItem::AsValueInto(
40 base::trace_event::TracedValue* array) const {
40 array->AppendString(base::StringPrintf("TransformDisplayItem transform: [%s]", 41 array->AppendString(base::StringPrintf("TransformDisplayItem transform: [%s]",
41 transform_.ToString().c_str())); 42 transform_.ToString().c_str()));
42 } 43 }
43 44
44 EndTransformDisplayItem::EndTransformDisplayItem() { 45 EndTransformDisplayItem::EndTransformDisplayItem() {
45 } 46 }
46 47
47 EndTransformDisplayItem::~EndTransformDisplayItem() { 48 EndTransformDisplayItem::~EndTransformDisplayItem() {
48 } 49 }
49 50
50 void EndTransformDisplayItem::Raster(SkCanvas* canvas, 51 void EndTransformDisplayItem::Raster(SkCanvas* canvas,
51 SkDrawPictureCallback* callback) const { 52 SkDrawPictureCallback* callback) const {
52 canvas->restore(); 53 canvas->restore();
53 } 54 }
54 55
55 bool EndTransformDisplayItem::IsSuitableForGpuRasterization() const { 56 bool EndTransformDisplayItem::IsSuitableForGpuRasterization() const {
56 return true; 57 return true;
57 } 58 }
58 59
59 int EndTransformDisplayItem::ApproximateOpCount() const { 60 int EndTransformDisplayItem::ApproximateOpCount() const {
60 return 0; 61 return 0;
61 } 62 }
62 63
63 size_t EndTransformDisplayItem::PictureMemoryUsage() const { 64 size_t EndTransformDisplayItem::PictureMemoryUsage() const {
64 return 0; 65 return 0;
65 } 66 }
66 67
67 void EndTransformDisplayItem::AsValueInto( 68 void EndTransformDisplayItem::AsValueInto(
68 base::debug::TracedValue* array) const { 69 base::trace_event::TracedValue* array) const {
69 array->AppendString("EndTransformDisplayItem"); 70 array->AppendString("EndTransformDisplayItem");
70 } 71 }
71 72
72 } // namespace cc 73 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/transform_display_item.h ('k') | cc/resources/transparency_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698