summaryrefslogtreecommitdiffstats
path: root/cc/debug
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-20 07:15:33 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-20 07:15:33 +0000
commit48c9fa72a0f011aece88b66d69e2fe93e05a2bda (patch)
tree3efbdfe1f1672442774b7840c76e1537fb7b7845 /cc/debug
parent1b3fbdee193ecca5402f2232c01045440d5f50be (diff)
downloadchromium_src-48c9fa72a0f011aece88b66d69e2fe93e05a2bda.zip
chromium_src-48c9fa72a0f011aece88b66d69e2fe93e05a2bda.tar.gz
chromium_src-48c9fa72a0f011aece88b66d69e2fe93e05a2bda.tar.bz2
cc: Don't discard framebuffer when using partial swaps
BUG=294433 Review URL: https://chromiumcodereview.appspot.com/24239006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224318 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug')
-rw-r--r--cc/debug/test_web_graphics_context_3d.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/debug/test_web_graphics_context_3d.h b/cc/debug/test_web_graphics_context_3d.h
index 3cc7073..4db270c 100644
--- a/cc/debug/test_web_graphics_context_3d.h
+++ b/cc/debug/test_web_graphics_context_3d.h
@@ -190,6 +190,9 @@ class CC_EXPORT TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
void set_have_post_sub_buffer(bool have) {
test_capabilities_.post_sub_buffer = have;
}
+ void set_have_discard_framebuffer(bool have) {
+ test_capabilities_.discard_framebuffer = have;
+ }
// When this context is lost, all contexts in its share group are also lost.
void add_share_group_context(WebKit::WebGraphicsContext3D* context3d) {