diff options
Diffstat (limited to 'chromium/cc/layers/content_layer_client.h')
-rw-r--r-- | chromium/cc/layers/content_layer_client.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/chromium/cc/layers/content_layer_client.h b/chromium/cc/layers/content_layer_client.h new file mode 100644 index 00000000000..e59c1d8c3e1 --- /dev/null +++ b/chromium/cc/layers/content_layer_client.h @@ -0,0 +1,35 @@ +// Copyright 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CC_LAYERS_CONTENT_LAYER_CLIENT_H_ +#define CC_LAYERS_CONTENT_LAYER_CLIENT_H_ + +#include "cc/base/cc_export.h" + +class SkCanvas; + +namespace gfx { +class Rect; +class RectF; +} + +namespace cc { + +class CC_EXPORT ContentLayerClient { + public: + virtual void PaintContents(SkCanvas* canvas, + gfx::Rect clip, + gfx::RectF* opaque) = 0; + + // Called by the content layer during the update phase. + // If the client paints LCD text, it may want to invalidate the layer. + virtual void DidChangeLayerCanUseLCDText() = 0; + + protected: + virtual ~ContentLayerClient() {} +}; + +} // namespace cc + +#endif // CC_LAYERS_CONTENT_LAYER_CLIENT_H_ |