Snapshot.h revision a3dc55f83ab583e0a66b893c71b849afa046770a
15cbbce535744b89df5ecea95de21ee3733298260Romain Guy/* 25cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Copyright (C) 2010 The Android Open Source Project 35cbbce535744b89df5ecea95de21ee3733298260Romain Guy * 45cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Licensed under the Apache License, Version 2.0 (the "License"); 55cbbce535744b89df5ecea95de21ee3733298260Romain Guy * you may not use this file except in compliance with the License. 65cbbce535744b89df5ecea95de21ee3733298260Romain Guy * You may obtain a copy of the License at 75cbbce535744b89df5ecea95de21ee3733298260Romain Guy * 85cbbce535744b89df5ecea95de21ee3733298260Romain Guy * http://www.apache.org/licenses/LICENSE-2.0 95cbbce535744b89df5ecea95de21ee3733298260Romain Guy * 105cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Unless required by applicable law or agreed to in writing, software 115cbbce535744b89df5ecea95de21ee3733298260Romain Guy * distributed under the License is distributed on an "AS IS" BASIS, 125cbbce535744b89df5ecea95de21ee3733298260Romain Guy * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 135cbbce535744b89df5ecea95de21ee3733298260Romain Guy * See the License for the specific language governing permissions and 145cbbce535744b89df5ecea95de21ee3733298260Romain Guy * limitations under the License. 155cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 165cbbce535744b89df5ecea95de21ee3733298260Romain Guy 175b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy#ifndef ANDROID_HWUI_SNAPSHOT_H 185b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy#define ANDROID_HWUI_SNAPSHOT_H 195cbbce535744b89df5ecea95de21ee3733298260Romain Guy 205cbbce535744b89df5ecea95de21ee3733298260Romain Guy#include <GLES2/gl2.h> 215cbbce535744b89df5ecea95de21ee3733298260Romain Guy#include <GLES2/gl2ext.h> 225cbbce535744b89df5ecea95de21ee3733298260Romain Guy 235cbbce535744b89df5ecea95de21ee3733298260Romain Guy#include <utils/RefBase.h> 245b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy#include <ui/Region.h> 255cbbce535744b89df5ecea95de21ee3733298260Romain Guy 26ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy#include <SkRegion.h> 27079ba2c85b15e882629b8d188f5fbdb42f7f8eeaRomain Guy 28dda570201ac851dd85af3861f7e575721d3345daRomain Guy#include "Layer.h" 295cbbce535744b89df5ecea95de21ee3733298260Romain Guy#include "Matrix.h" 305cbbce535744b89df5ecea95de21ee3733298260Romain Guy#include "Rect.h" 315cbbce535744b89df5ecea95de21ee3733298260Romain Guy 325cbbce535744b89df5ecea95de21ee3733298260Romain Guynamespace android { 335cbbce535744b89df5ecea95de21ee3733298260Romain Guynamespace uirenderer { 345cbbce535744b89df5ecea95de21ee3733298260Romain Guy 355cbbce535744b89df5ecea95de21ee3733298260Romain Guy/** 365cbbce535744b89df5ecea95de21ee3733298260Romain Guy * A snapshot holds information about the current state of the rendering 375cbbce535744b89df5ecea95de21ee3733298260Romain Guy * surface. A snapshot is usually created whenever the user calls save() 385cbbce535744b89df5ecea95de21ee3733298260Romain Guy * and discarded when the user calls restore(). Once a snapshot is created, 395cbbce535744b89df5ecea95de21ee3733298260Romain Guy * it can hold information for deferred rendering. 405cbbce535744b89df5ecea95de21ee3733298260Romain Guy * 415cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Each snapshot has a link to a previous snapshot, indicating the previous 425cbbce535744b89df5ecea95de21ee3733298260Romain Guy * state of the renderer. 435cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 445cbbce535744b89df5ecea95de21ee3733298260Romain Guyclass Snapshot: public LightRefBase<Snapshot> { 455cbbce535744b89df5ecea95de21ee3733298260Romain Guypublic: 465cbbce535744b89df5ecea95de21ee3733298260Romain Guy 47ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy Snapshot(); 48ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy Snapshot(const sp<Snapshot>& s, int saveFlags); 495cbbce535744b89df5ecea95de21ee3733298260Romain Guy 505cbbce535744b89df5ecea95de21ee3733298260Romain Guy /** 51ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * Various flags set on ::flags. 525cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 535cbbce535744b89df5ecea95de21ee3733298260Romain Guy enum Flags { 545cbbce535744b89df5ecea95de21ee3733298260Romain Guy /** 555cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Indicates that the clip region was modified. When this 565cbbce535744b89df5ecea95de21ee3733298260Romain Guy * snapshot is restored so must the clip. 575cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 585cbbce535744b89df5ecea95de21ee3733298260Romain Guy kFlagClipSet = 0x1, 595cbbce535744b89df5ecea95de21ee3733298260Romain Guy /** 605cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Indicates that this snapshot was created when saving 615cbbce535744b89df5ecea95de21ee3733298260Romain Guy * a new layer. 625cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 63079ba2c85b15e882629b8d188f5fbdb42f7f8eeaRomain Guy kFlagIsLayer = 0x2, 64f86ef57f8bcd8ba43ce222ec6a8b4f67d3600640Romain Guy /** 65eb99356a0548684a501766e6a524529ab93304c8Romain Guy * Indicates that this snapshot is a special type of layer 66eb99356a0548684a501766e6a524529ab93304c8Romain Guy * backed by an FBO. This flag only makes sense when the 67eb99356a0548684a501766e6a524529ab93304c8Romain Guy * flag kFlagIsLayer is also set. 68eb99356a0548684a501766e6a524529ab93304c8Romain Guy */ 69eb99356a0548684a501766e6a524529ab93304c8Romain Guy kFlagIsFboLayer = 0x4, 70eb99356a0548684a501766e6a524529ab93304c8Romain Guy /** 71eb99356a0548684a501766e6a524529ab93304c8Romain Guy * Indicates that this snapshot has changed the ortho matrix. 72eb99356a0548684a501766e6a524529ab93304c8Romain Guy */ 73ed7a8fc768df158241819f062a12dafdaf8a628dRomain Guy kFlagDirtyOrtho = 0x8, 745b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy /** 755b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy * Indicates that this snapshot or an ancestor snapshot is 765b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy * an FBO layer. 775b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy */ 78ed7a8fc768df158241819f062a12dafdaf8a628dRomain Guy kFlagFboTarget = 0x10 795cbbce535744b89df5ecea95de21ee3733298260Romain Guy }; 805cbbce535744b89df5ecea95de21ee3733298260Romain Guy 815cbbce535744b89df5ecea95de21ee3733298260Romain Guy /** 82f607bdc167f66b3e7003acaa4736ae46d78c1492Romain Guy * Modifies the current clip with the new clip rectangle and 83f607bdc167f66b3e7003acaa4736ae46d78c1492Romain Guy * the specified operation. The specified rectangle is transformed 84f607bdc167f66b3e7003acaa4736ae46d78c1492Romain Guy * by this snapshot's trasnformation. 853d58c03de0d8877b36cdb78b0ca8b5cac7f600e2Romain Guy */ 86f607bdc167f66b3e7003acaa4736ae46d78c1492Romain Guy bool clip(float left, float top, float right, float bottom, 87ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy SkRegion::Op op = SkRegion::kIntersect_Op); 88f607bdc167f66b3e7003acaa4736ae46d78c1492Romain Guy 89f607bdc167f66b3e7003acaa4736ae46d78c1492Romain Guy /** 90f607bdc167f66b3e7003acaa4736ae46d78c1492Romain Guy * Modifies the current clip with the new clip rectangle and 91f607bdc167f66b3e7003acaa4736ae46d78c1492Romain Guy * the specified operation. The specified rectangle is considered 92f607bdc167f66b3e7003acaa4736ae46d78c1492Romain Guy * already transformed. 93f607bdc167f66b3e7003acaa4736ae46d78c1492Romain Guy */ 94ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy bool clipTransformed(const Rect& r, SkRegion::Op op = SkRegion::kIntersect_Op); 955cbbce535744b89df5ecea95de21ee3733298260Romain Guy 965cbbce535744b89df5ecea95de21ee3733298260Romain Guy /** 97d27977d1a91d5a6b3cc9fa7664ac7e835e7bd895Romain Guy * Sets the current clip. 98d27977d1a91d5a6b3cc9fa7664ac7e835e7bd895Romain Guy */ 99ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy void setClip(float left, float top, float right, float bottom); 100959c91f7f7b4f921d341264f5b4ef54e702a0df0Romain Guy 101ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy /** 102ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * Returns the current clip in local coordinates. The clip rect is 103ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * transformed by the inverse transform matrix. 104ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy */ 105ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy const Rect& getLocalClip(); 106d27977d1a91d5a6b3cc9fa7664ac7e835e7bd895Romain Guy 107ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy /** 108ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * Resets the clip to the specified rect. 109ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy */ 110ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy void resetClip(float left, float top, float right, float bottom); 111eb99356a0548684a501766e6a524529ab93304c8Romain Guy 112ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy /** 113ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * Resets the current transform to a pure 3D translation. 114ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy */ 115ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy void resetTransform(float x, float y, float z); 116eb99356a0548684a501766e6a524529ab93304c8Romain Guy 117ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy /** 118ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * Indicates whether this snapshot should be ignored. A snapshot 119ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * is typicalled ignored if its layer is invisible or empty. 120ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy */ 121ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy bool isIgnored() const; 122af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy 1238b55f377655d13a445b08a0a8ed09b6e95c752b0Romain Guy /** 124a3dc55f83ab583e0a66b893c71b849afa046770aRomain Guy * Indicates whether the current transform has perspective components. 125a3dc55f83ab583e0a66b893c71b849afa046770aRomain Guy */ 126a3dc55f83ab583e0a66b893c71b849afa046770aRomain Guy bool hasPerspectiveTransform() const; 127a3dc55f83ab583e0a66b893c71b849afa046770aRomain Guy 128a3dc55f83ab583e0a66b893c71b849afa046770aRomain Guy /** 1295cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Dirty flags. 1305cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 1315cbbce535744b89df5ecea95de21ee3733298260Romain Guy int flags; 1325cbbce535744b89df5ecea95de21ee3733298260Romain Guy 1335cbbce535744b89df5ecea95de21ee3733298260Romain Guy /** 1345cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Previous snapshot. 1355cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 1365cbbce535744b89df5ecea95de21ee3733298260Romain Guy sp<Snapshot> previous; 1375cbbce535744b89df5ecea95de21ee3733298260Romain Guy 1385cbbce535744b89df5ecea95de21ee3733298260Romain Guy /** 1395cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Only set when the flag kFlagIsLayer is set. 140ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * 141ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * This snapshot does not own the layer, this pointer must not be freed. 1425cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 143dda570201ac851dd85af3861f7e575721d3345daRomain Guy Layer* layer; 144f86ef57f8bcd8ba43ce222ec6a8b4f67d3600640Romain Guy 1458aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy /** 146421458aad764cd9d1403d2540ab979b336b02341Romain Guy * Target FBO used for rendering. Set to 0 when rendering directly 147421458aad764cd9d1403d2540ab979b336b02341Romain Guy * into the framebuffer. 148eb99356a0548684a501766e6a524529ab93304c8Romain Guy */ 149eb99356a0548684a501766e6a524529ab93304c8Romain Guy GLuint fbo; 150eb99356a0548684a501766e6a524529ab93304c8Romain Guy 151eb99356a0548684a501766e6a524529ab93304c8Romain Guy /** 152dbc26d2ba13f80a7590c57de2d80530d96832969Romain Guy * Indicates that this snapshot is invisible and nothing should be drawn 153af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy * inside it. This flag is set only when the layer clips drawing to its 154af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy * bounds and is passed to subsequent snapshots. 155dbc26d2ba13f80a7590c57de2d80530d96832969Romain Guy */ 156dbc26d2ba13f80a7590c57de2d80530d96832969Romain Guy bool invisible; 157dbc26d2ba13f80a7590c57de2d80530d96832969Romain Guy 158dbc26d2ba13f80a7590c57de2d80530d96832969Romain Guy /** 159af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy * If set to true, the layer will not be composited. This is similar to 160af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy * invisible but this flag is not passed to subsequent snapshots. 161af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy */ 162af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy bool empty; 163af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy 164af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy /** 165eb99356a0548684a501766e6a524529ab93304c8Romain Guy * Current viewport. 166eb99356a0548684a501766e6a524529ab93304c8Romain Guy */ 167eb99356a0548684a501766e6a524529ab93304c8Romain Guy Rect viewport; 168eb99356a0548684a501766e6a524529ab93304c8Romain Guy 169eb99356a0548684a501766e6a524529ab93304c8Romain Guy /** 170eb99356a0548684a501766e6a524529ab93304c8Romain Guy * Height of the framebuffer the snapshot is rendering into. 171eb99356a0548684a501766e6a524529ab93304c8Romain Guy */ 172eb99356a0548684a501766e6a524529ab93304c8Romain Guy int height; 173eb99356a0548684a501766e6a524529ab93304c8Romain Guy 174eb99356a0548684a501766e6a524529ab93304c8Romain Guy /** 175eb99356a0548684a501766e6a524529ab93304c8Romain Guy * Contains the previous ortho matrix. 176eb99356a0548684a501766e6a524529ab93304c8Romain Guy */ 177eb99356a0548684a501766e6a524529ab93304c8Romain Guy mat4 orthoMatrix; 178eb99356a0548684a501766e6a524529ab93304c8Romain Guy 179eb99356a0548684a501766e6a524529ab93304c8Romain Guy /** 1808aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy * Local transformation. Holds the current translation, scale and 1818aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy * rotation values. 182ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * 183ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * This is a reference to a matrix owned by this snapshot or another 184ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * snapshot. This pointer must not be freed. See ::mTransformRoot. 1858aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy */ 1868aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy mat4* transform; 1878aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy 1888aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy /** 189967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * Current clip rect. The clip is stored in canvas-space coordinates, 1908aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy * (screen-space coordinates in the regular case.) 191ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * 192ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * This is a reference to a rect owned by this snapshot or another 193ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * snapshot. This pointer must not be freed. See ::mClipRectRoot. 1948aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy */ 1958aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy Rect* clipRect; 1968aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy 1975b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy /** 198967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * Current clip region. The clip is stored in canvas-space coordinates, 199967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * (screen-space coordinates in the regular case.) 200967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * 201967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * This is a reference to a region owned by this snapshot or another 202967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * snapshot. This pointer must not be freed. See ::mClipRegionRoot. 203967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * 204967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * This field is used only if STENCIL_BUFFER_SIZE is > 0. 205967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy */ 2060baaac5e9adf3ee280ae1239e2e58754a9d2b099Romain Guy SkRegion* clipRegion; 207967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy 208967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy /** 209f219da5e32e85deb442468ee9a63bb28eb198557Romain Guy * The ancestor layer's dirty region. 210ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * 211ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * This is a reference to a region owned by a layer. This pointer must 212ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * not be freed. 2135b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy */ 2145b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy Region* region; 2155b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy 216db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase /** 217db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * Current alpha value. This value is 1 by default, but may be set by a DisplayList which 218db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * has translucent rendering in a non-overlapping View. This value will be used by 219db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * the renderer to set the alpha in the current color being used for ensuing drawing 220db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * operations. The value is inherited by child snapshots because the same value should 221db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * be applied to descendents of the current DisplayList (for example, a TextView contains 222db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * the base alpha value which should be applied to the child DisplayLists used for drawing 223db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * the actual text). 224db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase */ 225db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase float alpha; 226db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase 2275cbbce535744b89df5ecea95de21ee3733298260Romain Guyprivate: 228967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy void ensureClipRegion(); 229967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy void copyClipRectFromRegion(); 230967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy 2310baaac5e9adf3ee280ae1239e2e58754a9d2b099Romain Guy bool clipRegionOp(float left, float top, float right, float bottom, SkRegion::Op op); 232967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy 2338aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy mat4 mTransformRoot; 2348aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy Rect mClipRectRoot; 2358aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy Rect mLocalClip; 236079ba2c85b15e882629b8d188f5fbdb42f7f8eeaRomain Guy 237967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy#if STENCIL_BUFFER_SIZE 2380baaac5e9adf3ee280ae1239e2e58754a9d2b099Romain Guy SkRegion mClipRegionRoot; 239967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy#endif 240967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy 2415cbbce535744b89df5ecea95de21ee3733298260Romain Guy}; // class Snapshot 2425cbbce535744b89df5ecea95de21ee3733298260Romain Guy 2435cbbce535744b89df5ecea95de21ee3733298260Romain Guy}; // namespace uirenderer 2445cbbce535744b89df5ecea95de21ee3733298260Romain Guy}; // namespace android 2455cbbce535744b89df5ecea95de21ee3733298260Romain Guy 2465b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy#endif // ANDROID_HWUI_SNAPSHOT_H 247