From patchwork Wed Sep 4 17:51:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: alexandros.frantzis@linaro.org X-Patchwork-Id: 19760 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 43D5525E28 for ; Wed, 4 Sep 2013 17:51:33 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id i72sf748948yha.1 for ; Wed, 04 Sep 2013 10:51:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:to:from:subject :message-id:date:reply-to:sender:errors-to:precedence :x-original-sender:x-original-authentication-results:mailing-list :list-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=pEq2wN5mlRg169HgzlwB1hcFiBGASPatJqyGZcOR/Qc=; b=B+CW9XpLOTx983WRaWX6WY2ly1HF2IMzgzeJJUdC7spLp/ooP0j5J7nsJzYwDzeKsH yIAzMbT9+8NfJs8Ry3ECrF0sEm/ARKNt+7wCez5CYnTiZrb93iE+TnlXTiKD+HkTmecI H5X1yYYEwIieVWVN6BS1/Hr9Wo+SqrhzujONoJbCRRXNczkjtJNlt8ZTVEvHMa2nXAFm PpFk9BZz4qTfaVjQ+0AfDcgci0WnCrZuLL6OOGy5D8yOet4s9rJkZgWx7EMir3RQ6CNG AT+cCJL/OCDY77hntBfAA3dLATycwJp+utuTJiovFkUumXfQF5PN8sncJgJTw9ZVIjmE wmVA== X-Received: by 10.236.52.228 with SMTP id e64mr1414114yhc.45.1378317093008; Wed, 04 Sep 2013 10:51:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.38.101 with SMTP id f5ls217099qek.31.gmail; Wed, 04 Sep 2013 10:51:32 -0700 (PDT) X-Received: by 10.52.229.73 with SMTP id so9mr341121vdc.27.1378317092869; Wed, 04 Sep 2013 10:51:32 -0700 (PDT) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id rx3si6142054vcb.5.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Sep 2013 10:51:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.50; Received: by mail-vb0-f50.google.com with SMTP id x14so398693vbb.23 for ; Wed, 04 Sep 2013 10:51:32 -0700 (PDT) X-Gm-Message-State: ALoCoQmN9q72/dAkQuLX2TxOqT6JE40WQUeakL8+0/63Vod6707vDs+Tj/kTem7W9QZUwO7z262P X-Received: by 10.59.8.232 with SMTP id dn8mr3661619ved.8.1378317092786; Wed, 04 Sep 2013 10:51:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp233902vcz; Wed, 4 Sep 2013 10:51:32 -0700 (PDT) X-Received: by 10.194.89.38 with SMTP id bl6mr2343420wjb.50.1378317090513; Wed, 04 Sep 2013 10:51:30 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id j8si1515813wiw.30.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Sep 2013 10:51:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1VHHEn-0004zU-MK for ; Wed, 04 Sep 2013 17:51:29 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 9CBD3E90FF for ; Wed, 4 Sep 2013 17:51:29 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: glmark2 X-Launchpad-Branch: ~glmark2-dev/glmark2/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 283 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~glmark2-dev/glmark2/trunk] Rev 283: NativeStateWayland: make wayland window opaque Message-Id: <20130904175129.7960.22894.launchpad@ackee.canonical.com> Date: Wed, 04 Sep 2013 17:51:29 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16753"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: a26fc445646324e40b2d49d4a506914e008791cd X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ------------------------------------------------------------ revno: 283 fixes bug: https://launchpad.net/bugs/1219764 author: RafaƂ Mielniczuk , Rafal Mielniczuk committer: Alexandros Frantzis branch nick: glmark2-wayland-opaque-region timestamp: Wed 2013-09-04 18:42:26 +0200 message: NativeStateWayland: make wayland window opaque We need to make window opaque in order to prevent redrawing background behind it in some of the benchmarks, eg. jellyfish. https://bugs.launchpad.net/glmark2/+bug/1219764 modified: src/native-state-wayland.cpp src/native-state-wayland.h --- lp:glmark2 https://code.launchpad.net/~glmark2-dev/glmark2/trunk You are subscribed to branch lp:glmark2. To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription === modified file 'src/native-state-wayland.cpp' --- src/native-state-wayland.cpp 2013-08-28 17:43:48 +0000 +++ src/native-state-wayland.cpp 2013-09-04 16:42:26 +0000 @@ -54,6 +54,8 @@ if (window_) { if (window_->shell_surface) wl_shell_surface_destroy(window_->shell_surface); + if (window_->opaque_reqion) + wl_region_destroy(window_->opaque_reqion); if (window_->surface) wl_surface_destroy(window_->surface); if (window_->native) @@ -233,6 +235,13 @@ window_->native = wl_egl_window_create(window_->surface, properties.width, properties.height); } + + window_->opaque_reqion = wl_compositor_create_region(display_->compositor); + wl_region_add(window_->opaque_reqion, 0, 0, + window_->properties.width, + window_->properties.height); + wl_surface_set_opaque_region(window_->surface, window_->opaque_reqion); + window_->shell_surface = wl_shell_get_shell_surface(display_->shell, window_->surface); === modified file 'src/native-state-wayland.h' --- src/native-state-wayland.h 2013-08-06 22:18:53 +0000 +++ src/native-state-wayland.h 2013-09-04 16:42:26 +0000 @@ -106,6 +106,7 @@ struct my_window { WindowProperties properties; struct wl_surface *surface; + struct wl_region *opaque_reqion; struct wl_egl_window *native; struct wl_shell_surface *shell_surface; } *window_;