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

Side by Side Diff: Source/core/platform/graphics/GraphicsLayerClient.h

Issue 14974003: Remove codes related to scaling in GraphicsLayer tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch to land: Remove an unused memeber in PageOverlay.cpp to compile in Mac. Created 7 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Callback for when hardware-accelerated animation started. 60 // Callback for when hardware-accelerated animation started.
61 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) = 0; 61 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) = 0;
62 62
63 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) = 0; 63 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) = 0;
64 virtual void didCommitChangesForLayer(const GraphicsLayer*) const { } 64 virtual void didCommitChangesForLayer(const GraphicsLayer*) const { }
65 65
66 // Provides current transform (taking transform-origin and animations into a ccount). Input matrix has been 66 // Provides current transform (taking transform-origin and animations into a ccount). Input matrix has been
67 // initialized to identity already. Returns false if the layer has no transf orm. 67 // initialized to identity already. Returns false if the layer has no transf orm.
68 virtual bool getCurrentTransform(const GraphicsLayer*, TransformationMatrix& ) const { return false; } 68 virtual bool getCurrentTransform(const GraphicsLayer*, TransformationMatrix& ) const { return false; }
69 69
70 // Multiplier for backing store size, related to high DPI.
71 virtual float deviceScaleFactor() const { return 1; }
72 // Page scale factor.
73 virtual float pageScaleFactor() const { return 1; }
74
75 virtual bool isTrackingRepaints() const { return false; } 70 virtual bool isTrackingRepaints() const { return false; }
76 71
77 #ifndef NDEBUG 72 #ifndef NDEBUG
78 // RenderLayerBacking overrides this to verify that it is not 73 // RenderLayerBacking overrides this to verify that it is not
79 // currently painting contents. An ASSERT fails, if it is. 74 // currently painting contents. An ASSERT fails, if it is.
80 // This is executed in GraphicsLayer construction and destruction 75 // This is executed in GraphicsLayer construction and destruction
81 // to verify that we don't create or destroy GraphicsLayers 76 // to verify that we don't create or destroy GraphicsLayers
82 // while painting. 77 // while painting.
83 virtual void verifyNotPainting() { } 78 virtual void verifyNotPainting() { }
84 #endif 79 #endif
85 }; 80 };
86 81
87 } // namespace WebCore 82 } // namespace WebCore
88 83
89 #endif // GraphicsLayerClient_h 84 #endif // GraphicsLayerClient_h
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/GraphicsLayer.cpp ('k') | Source/core/rendering/RenderLayerBacking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698