org.chromium.chrome.browser.compositor.Invalidator Java Examples

The following examples show how to use org.chromium.chrome.browser.compositor.Invalidator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ToolbarLayout.java    From delion with Apache License 2.0 5 votes vote down vote up
/**
 * Triggers a paint but allows the {@link Invalidator} set by
 * {@link #setPaintInvalidator(Invalidator)} to decide when to actually invalidate.
 * @param client A {@link Invalidator.Client} instance that wants to be invalidated.
 */
protected void triggerPaintInvalidate(Invalidator.Client client) {
    if (mInvalidator == null) {
        client.doInvalidate();
    } else {
        mInvalidator.invalidate(client);
    }
}
 
Example #2
Source File: ToolbarLayout.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
/**
 * Triggers a paint but allows the {@link Invalidator} set by
 * {@link #setPaintInvalidator(Invalidator)} to decide when to actually invalidate.
 * @param client A {@link Invalidator.Client} instance that wants to be invalidated.
 */
protected void triggerPaintInvalidate(Invalidator.Client client) {
    if (mInvalidator == null) {
        client.doInvalidate();
    } else {
        mInvalidator.invalidate(client);
    }
}
 
Example #3
Source File: ToolbarLayout.java    From 365browser with Apache License 2.0 5 votes vote down vote up
/**
 * Triggers a paint but allows the {@link Invalidator} set by
 * {@link #setPaintInvalidator(Invalidator)} to decide when to actually invalidate.
 * @param client A {@link Invalidator.Client} instance that wants to be invalidated.
 */
protected void triggerPaintInvalidate(Invalidator.Client client) {
    if (mInvalidator == null) {
        client.doInvalidate();
    } else {
        mInvalidator.invalidate(client);
    }
}
 
Example #4
Source File: ToolbarLayout.java    From delion with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the {@link Invalidator} that will be called when the toolbar attempts to invalidate the
 * drawing surface.  This will give the object that registers as the host for the
 * {@link Invalidator} a chance to defer the actual invalidate to sync drawing.
 * @param invalidator An {@link Invalidator} instance.
 */
public void setPaintInvalidator(Invalidator invalidator) {
    mInvalidator = invalidator;
}
 
Example #5
Source File: ToolbarLayout.java    From AndroidChromium with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the {@link Invalidator} that will be called when the toolbar attempts to invalidate the
 * drawing surface.  This will give the object that registers as the host for the
 * {@link Invalidator} a chance to defer the actual invalidate to sync drawing.
 * @param invalidator An {@link Invalidator} instance.
 */
public void setPaintInvalidator(Invalidator invalidator) {
    mInvalidator = invalidator;
}
 
Example #6
Source File: ToolbarLayout.java    From 365browser with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the {@link Invalidator} that will be called when the toolbar attempts to invalidate the
 * drawing surface.  This will give the object that registers as the host for the
 * {@link Invalidator} a chance to defer the actual invalidate to sync drawing.
 * @param invalidator An {@link Invalidator} instance.
 */
public void setPaintInvalidator(Invalidator invalidator) {
    mInvalidator = invalidator;
}