Snapshot.h revision db8c9a6a4d9bf8c39f834b25611926caf21380f6
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 /** 1245cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Dirty flags. 1255cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 1265cbbce535744b89df5ecea95de21ee3733298260Romain Guy int flags; 1275cbbce535744b89df5ecea95de21ee3733298260Romain Guy 1285cbbce535744b89df5ecea95de21ee3733298260Romain Guy /** 1295cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Previous snapshot. 1305cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 1315cbbce535744b89df5ecea95de21ee3733298260Romain Guy sp<Snapshot> previous; 1325cbbce535744b89df5ecea95de21ee3733298260Romain Guy 1335cbbce535744b89df5ecea95de21ee3733298260Romain Guy /** 1345cbbce535744b89df5ecea95de21ee3733298260Romain Guy * Only set when the flag kFlagIsLayer is set. 135ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * 136ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * This snapshot does not own the layer, this pointer must not be freed. 1375cbbce535744b89df5ecea95de21ee3733298260Romain Guy */ 138dda570201ac851dd85af3861f7e575721d3345daRomain Guy Layer* layer; 139f86ef57f8bcd8ba43ce222ec6a8b4f67d3600640Romain Guy 1408aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy /** 141421458aad764cd9d1403d2540ab979b336b02341Romain Guy * Target FBO used for rendering. Set to 0 when rendering directly 142421458aad764cd9d1403d2540ab979b336b02341Romain Guy * into the framebuffer. 143eb99356a0548684a501766e6a524529ab93304c8Romain Guy */ 144eb99356a0548684a501766e6a524529ab93304c8Romain Guy GLuint fbo; 145eb99356a0548684a501766e6a524529ab93304c8Romain Guy 146eb99356a0548684a501766e6a524529ab93304c8Romain Guy /** 147dbc26d2ba13f80a7590c57de2d80530d96832969Romain Guy * Indicates that this snapshot is invisible and nothing should be drawn 148af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy * inside it. This flag is set only when the layer clips drawing to its 149af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy * bounds and is passed to subsequent snapshots. 150dbc26d2ba13f80a7590c57de2d80530d96832969Romain Guy */ 151dbc26d2ba13f80a7590c57de2d80530d96832969Romain Guy bool invisible; 152dbc26d2ba13f80a7590c57de2d80530d96832969Romain Guy 153dbc26d2ba13f80a7590c57de2d80530d96832969Romain Guy /** 154af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy * If set to true, the layer will not be composited. This is similar to 155af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy * invisible but this flag is not passed to subsequent snapshots. 156af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy */ 157af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy bool empty; 158af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy 159af636ebf5feb2837683fbfe965040cb706b32ec1Romain Guy /** 160eb99356a0548684a501766e6a524529ab93304c8Romain Guy * Current viewport. 161eb99356a0548684a501766e6a524529ab93304c8Romain Guy */ 162eb99356a0548684a501766e6a524529ab93304c8Romain Guy Rect viewport; 163eb99356a0548684a501766e6a524529ab93304c8Romain Guy 164eb99356a0548684a501766e6a524529ab93304c8Romain Guy /** 165eb99356a0548684a501766e6a524529ab93304c8Romain Guy * Height of the framebuffer the snapshot is rendering into. 166eb99356a0548684a501766e6a524529ab93304c8Romain Guy */ 167eb99356a0548684a501766e6a524529ab93304c8Romain Guy int height; 168eb99356a0548684a501766e6a524529ab93304c8Romain Guy 169eb99356a0548684a501766e6a524529ab93304c8Romain Guy /** 170eb99356a0548684a501766e6a524529ab93304c8Romain Guy * Contains the previous ortho matrix. 171eb99356a0548684a501766e6a524529ab93304c8Romain Guy */ 172eb99356a0548684a501766e6a524529ab93304c8Romain Guy mat4 orthoMatrix; 173eb99356a0548684a501766e6a524529ab93304c8Romain Guy 174eb99356a0548684a501766e6a524529ab93304c8Romain Guy /** 1758aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy * Local transformation. Holds the current translation, scale and 1768aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy * rotation values. 177ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * 178ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * This is a reference to a matrix owned by this snapshot or another 179ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * snapshot. This pointer must not be freed. See ::mTransformRoot. 1808aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy */ 1818aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy mat4* transform; 1828aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy 1838aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy /** 184967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * Current clip rect. The clip is stored in canvas-space coordinates, 1858aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy * (screen-space coordinates in the regular case.) 186ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * 187ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * This is a reference to a rect owned by this snapshot or another 188ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * snapshot. This pointer must not be freed. See ::mClipRectRoot. 1898aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy */ 1908aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy Rect* clipRect; 1918aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy 1925b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy /** 193967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * Current clip region. The clip is stored in canvas-space coordinates, 194967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * (screen-space coordinates in the regular case.) 195967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * 196967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * This is a reference to a region owned by this snapshot or another 197967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * snapshot. This pointer must not be freed. See ::mClipRegionRoot. 198967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * 199967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy * This field is used only if STENCIL_BUFFER_SIZE is > 0. 200967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy */ 201967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy Region* clipRegion; 202967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy 203967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy /** 204f219da5e32e85deb442468ee9a63bb28eb198557Romain Guy * The ancestor layer's dirty region. 205ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * 206ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * This is a reference to a region owned by a layer. This pointer must 207ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy * not be freed. 2085b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy */ 2095b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy Region* region; 2105b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy 211db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase /** 212db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * Current alpha value. This value is 1 by default, but may be set by a DisplayList which 213db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * has translucent rendering in a non-overlapping View. This value will be used by 214db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * the renderer to set the alpha in the current color being used for ensuing drawing 215db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * operations. The value is inherited by child snapshots because the same value should 216db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * be applied to descendents of the current DisplayList (for example, a TextView contains 217db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * the base alpha value which should be applied to the child DisplayLists used for drawing 218db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase * the actual text). 219db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase */ 220db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase float alpha; 221db8c9a6a4d9bf8c39f834b25611926caf21380f6Chet Haase 2225cbbce535744b89df5ecea95de21ee3733298260Romain Guyprivate: 223967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy void ensureClipRegion(); 224967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy void copyClipRectFromRegion(); 225967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy 226967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy bool clipRegionOr(float left, float top, float right, float bottom); 227967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy bool clipRegionXor(float left, float top, float right, float bottom); 228967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy bool clipRegionAnd(float left, float top, float right, float bottom); 229967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy bool clipRegionNand(float left, float top, float right, float bottom); 230967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy 2318aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy mat4 mTransformRoot; 2328aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy Rect mClipRectRoot; 2338aef54fa17f2a3753d9a8f2027629bc480088f69Romain Guy Rect mLocalClip; 234079ba2c85b15e882629b8d188f5fbdb42f7f8eeaRomain Guy 235967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy#if STENCIL_BUFFER_SIZE 236967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy Region mClipRegionRoot; 237967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy#endif 238967e2bf3ac8943a8e8a374bf86021915445cda67Romain Guy 2395cbbce535744b89df5ecea95de21ee3733298260Romain Guy}; // class Snapshot 2405cbbce535744b89df5ecea95de21ee3733298260Romain Guy 2415cbbce535744b89df5ecea95de21ee3733298260Romain Guy}; // namespace uirenderer 2425cbbce535744b89df5ecea95de21ee3733298260Romain Guy}; // namespace android 2435cbbce535744b89df5ecea95de21ee3733298260Romain Guy 2445b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy#endif // ANDROID_HWUI_SNAPSHOT_H 245